Re: Paths and ImageCreate(), GetImageSize()...

From: Date: Thu, 21 Feb 2002 18:36:15 +0000
Subject: Re: Paths and ImageCreate(), GetImageSize()...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85755@lists.php.net to get a copy of this message
what font are you using? hugh ----- Original Message ----- From: "Monty" <monty3@hotmail.com> To: <php-general@lists.php.net> Sent: Thursday, February 21, 2002 1:10 AM Subject: [PHP] Paths and ImageCreate(), GetImageSize()... > I'm having a hard time figuring out exactly how paths should be listed when > pointing to files using the ImageCreate(), ImageCopyResized(), etc. > commands. > > My images are in a sub-folder called "img", and my script is in another > sub-folder called "scripts" (at the same level as "img"). > > It appears that GetImageSize() only works for me when I put the full URL in > front of the file name like this... > > > GetImageSize("http://www.mysite.com/img/photo.jpg") > > Is that the only way for this to work? The following variations all produce > an error saying it can't file the file "photo.jpg": > > GetImageSize("../img/photo.jpg") > GetImageSize("/img/photo.jpg") > GetImageSize("img/photo.jpg") > > At least GetImageSize() works with a URL. I can't say the same for any of > the ImageCreate() functions, which when used with all of the above path > variations including the URL, produce an error stating it can't locate the > "photo.jpg" file. Permissions for the "img" folder are set to 777, and I can > load the file using IMG SRC="/img/photo.jpg" with no problems. Why can't I > get these functions to find the file using the same path? > > Thanks. > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#85755) next »