Re: writing files

From: Date: Tue, 25 Sep 2001 20:19:51 +0000
Subject: Re: writing files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68767@lists.php.net to get a copy of this message
'/images/image1.png' is '<root>/images/image1.png' 'images/image1.png' is '<webroot>/images/image1.png' you are using the first, unless your something wierd on your first box, like chroot, or safe_mode, or something else Ive never used, I dont know why the first server is acting the way it is. -- Chris Lee lee@mediawaveonline.com "Jeb Scarbrough" <JScarbrough@iss.net> wrote in message news:DF3CC311E898D311A3670008C709BD2306B4344D@msgatl01.iss.net... > 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 (#68767) next »