Ok, well I maintain a database of consultants for CNC programmers and network admins at my shop. I'm keeping track of time and labor costs.
I have a static value of say $48.00 for each hour a rep is pulled away from their usual duties. I'd keep my spreadsheet like so:
Date Desc Employee...
I am trying to keep track of each page in a history so that the user can go back as many as 5 steps into their history.
I was planning on doing this using a class object:
(please ignore any previous defines like TRUE and NULL)
class HistoryObj {
var $label;
var $filename;
var...
I'm returning a -1 on timestamp, I'll save us the time by placing the code:
$modded = last_mod("localhost/submitted.php");
function last_mod($remote_file) {
$ch = curl_init();
$ret = curl_setopt($ch, CURLOPT_URL, $remote_file);
$ret = curl_setopt($ch, CURLOPT_HEADER, 1);
$ret =...
I have gone over my options, and thus far have not found an option for snagging the remote filesize of a webpage. I can grab google.com, but anything that needs to be processed (ie php) comes back as 0 bytes.
I need to find the size of a file for hourly checksums, and hopefully someone can...
Hey all,
This is about the 900th time I've installed PHP and Apache together on an XP box, but for whatever reason I am overlooking something, and I need some help.
For whatever reason, index.php is displayed as a text file. For instance:
<? phpinfo(); ?>
is displayed instead of parsing the...
I'm creating a database that will archive links. I would like to avoid placing all the links into one large table since it will be receiving quite a few hits and I don't want to have to parse the table by date too often if it's large. What I was thinking was creating tables in the format of yymm...
Well, my old code isn't working with my new install of PHP 4.3.2 and Apache2. The GD php_gd2.dll is loaded... however even this line of code wont display a jpeg file:
<?
header("Content-type: image/jpeg");
$im = imagecreatefromjpeg("bg1.jpg");
imagejpeg($im);
?>
The...
There is this huge PHP project (it's a PHP project because I told them thats the only language it would be possible in hahahha.. shhh.) and I need something to create at least a palettable workflow chat out of for program flow.
Anyone know of any editors that I could create one quickly and...
Hey all,
I just finished a class for creating dynamic images for verification purposes.
Here is an image that was generated a few minutes ago:
I was hoping to get some opinions on whether or not this was enough? If its clear? And perhaps some tips on image verification concepts.
I'm not...
Here is a snippet I modified. Basically it's to set transparent text over a background:
<?
header('Content-type: image/jpeg');
$im = ImageCreateFromJpeg("bg.jpg");
$im_w = imagesx($im); // Get the image width
$im_h = imagesy($im); // Get the image height
$col =...
Ok... enough hair pulling...
I'm getting different answers from people.
GD is not supported by PHP 4.3.2 initially correct? I'll have to download that nasty zip of headers and source and compile it on my 98 box? Then dump the php_gd2.dll into an includes directory and just set it up to load...
Ok guys.
I have a database that has this entry:
COL NAME=NAME VALUE="1 TestColumn"
if I do a search for '1%' I get nothing back. If I do a search in any of my other tables for that it prints fine.
Any ideas?
http://www.angsttechnology.com - "Delightfully confusing..."...
Hey all,
I just finished installing SuSE 8.2. I love it. However I noticed something odd. I was running RedHat 8, and never had this problem before.
When running X w/Enlightenment the system TOP says I'm using about 170megs of memory. Then I bust out Mozilla and it forks about 6 processes for...
Ok, I am I trying to generate a general template based off of user information in a database. When accessing the URL I don't have the users ID, but I need it to access the correct database row.
The user directory for their template pages are under /home/user_id, however, I'd like to avoid...
I'm creating unique IDs within a table for members. For my purposes it has to be unique and at least 10 chars long.
Is this pretty much a given that the ID will come out unique?
$mix = date("BisZU");
$mix = $mix."".$_POST[username]."";
$memberID =...
Anyone had any problems with PHP4 in Win32 (Apache 1.3.x) not passing form values via POST?
I can't seem to get it to read form values even with GET.
I'm not a newbie, so I know there are no syntax errors... I've run almost every test I can... could it be a problem with PHP or Apache...
Anyone know if you can force a single image on a page to not cache?
Or do I have to force the entire page to not cache?
http://www.angsttechnology.com - "Delightfully confusing..." raves The New York Times
-kas
This time it's on another server I'm running. I'm just hoping it's not as dreary an outcome as I think it's going to be.
I need to upgrade GLIBC on this box, but I get the following errors:
rpm -Uvh glibc-2.2.93-5.i386.rpm glibc-common-2.2.93-5.i386.rpm glibc-devel-2.2.93-5.i386.rpm
error...
I am building an online community for work. I am not new to MySQL, however I am new to the design aspect in regards to large scale implementation.
What I need to do is build a database of groups, members and the communities they belong to.
Something like: group->community->member
The groups...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.