note 45807 deleted from function.getimagesize by mazzanet

From: Date: Mon, 02 Jan 2006 07:50:02 +0000
Subject: note 45807 deleted from function.getimagesize by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-101102@lists.php.net to get a copy of this message
Note Submitter: webmaster at theotherpixel dot com ---- 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

« previous php.notes (#101102) next »