note 45807 added to function.getimagesize
| From: | webmaster at theotherpixel dot com | Date: | Mon, 20 Sep 2004 02:29:13 +0000 |
| Subject: | note 45807 added to function.getimagesize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76994@lists.php.net to get a copy of this message | ||
I had one heck of a time using this function under 4.3.0. Searching the web I found a few comments
about it just not working, but no solutions. In the long run I copied the page I was using as a
test onto another server which was set up the same as the first server. Still no luck. However, I
did finally figure out the problem.
It appears that the problem is in not using a relative pathname to the file...
$size = "/images/imagename.gif";
resulted in no results in $size[3].
$size = "http://domain.com/images/imagename.gif";
also gave no results.
On a whim I tried
$size = "images/imagename.gif";
and lo and behold I got my string back.
This seems like a bug to me and perhaps it has been fixed by now, however, this may help someone
else when having a similar experience.
Brian
----
Manual Page -- http://www.php.net/manual/en/function.getimagesize.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45807
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45807&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45807&report=yes
Search -- http://master.php.net/manage/user-notes.php