writing files

From: Date: Tue, 25 Sep 2001 19:41:12 +0000
Subject: writing files
Groups: php.general 
Request: Send a blank email to php-general+get-68765@lists.php.net to get a copy of this message
When I run the code below it writes the image to the <webroot>/images directory on a Solaris machine running iPlanet and php4.04pl1. When I run the exactly same code on a Solaris machine running iPlanet and php4.08 it tries to write the file to "<root>/images/image1.png". Why would one write to the webroot and one write to the file system root? Is there configuration directive I can put in the php.ini to resolve? What am I missing here? Thanks! <?php $key = "/images/image1.png"; $value = "http://xxx.xxx.xxx.xxx?type=PNG"; if(file_exists($key)) { $diff = time() - filemtime($key); if($diff >= 3600) { unlink($key); } $im = ImageCreateFromPNG($value); $isCreated = imagepng($im, $key, '80'); } ?> ________________________ Jeb Scarbrough jscarbrough@iss.net Internet Security Systems, Inc. 6303 Barfield Road Atlanta, Georgia 30328 Phone: 404-236-3292 Fax: 404-236-2626 _________________________________

« previous php.general (#68765) next »