Re: Procedural Code Issue

From: Date: Mon, 08 Sep 2003 13:47:12 +0000
Subject: Re: Procedural Code Issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161984@lists.php.net to get a copy of this message
Safe mode? If safe mode is on and the image is owned by apache, the script that is owned by your acount cannot read the image. Nathan Taylor wrote:
Hey Guys, I am developing code that uses GD to create and store an image but it is giving me trouble with GetImageSize, maybe you guys can offer some ideas. Here's my code: echo "<div id=\"zimg\" class=\"zoom\"><img src=\"create_image.php?image=".$imgpath.$fileid.".jpg&mergesrc=images/hide.jpg&cache=1\" onMouseOut=\"hideObject(zimg)\" onMouseDown=\"hideObject(zimg)\" border=\"0\"></div>\n"; $img_data = GetImageSize($imgpath.$imgname_full); The first line creates and stores the image while the second line calls file information on it. Procedurally, the image exists at the point which GetImageSize is called, however, GetImageSize returns a false result on the pointer when it looks for the file. All the paths are fine but there is something going cock-eyed during the execution. Can anyone offer ideas? I have already tried both declaring an absolute path and checking the variables arlready. Thanks, Nathan Taylor


« previous php.general (#161984) next »