Search found 4 matches

by chiyosdad
Thu Dec 25, 2003 10:52 pm
Forum: PHP - Code
Topic: script to list directories won't work
Replies: 1
Views: 993

script to list directories won't work

Hey, yeah, I'm writing a script to list the files and subdirectories of a directory (it's like a tree command). The code is <?php function listDir($r00t, $tab) &#123; if(is_dir($r00t)) &#123; $n = 0; if(!($dh = opendir($r00t))) echo "Failed to open directory $r00t <br>"; else while...
by chiyosdad
Thu Dec 25, 2003 11:21 am
Forum: PHP - Code
Topic: Help with image processing
Replies: 5
Views: 330

Yeah, i got
imagejpeg does not exist

So it is time to hound my system admin. Thanks for the help.
by chiyosdad
Wed Dec 24, 2003 9:14 pm
Forum: PHP - Code
Topic: Help with image processing
Replies: 5
Views: 330

Ah yeah, that was a typo, but it didn't solve the problem. I went back and fixed that, and also tried to figure out where the problem was. I used <?php if(!($im1 = imagecreate(500, 300))) echo "error1"; if(($tc = imagecolorallocate($im1, 250, 250, 250))==-1) echo "error2"; if(!im...
by chiyosdad
Wed Dec 24, 2003 11:46 am
Forum: PHP - Code
Topic: Help with image processing
Replies: 5
Views: 330

Help with image processing

Hi, I'm trying to write a script that graphs my site traffic data for me. I'm not familiar with imaging with php, so I'm just playing around right now. First, I ran the phpinfo and verfied that gd is supported: gd GD Support enabled GD Version 1.6.2 or higher WBMP Support enabled So I practically co...