note 98947 added to function.getimagesize
| From: | KevinL dot Shelton at osu1 dot php dot net | Date: | Fri, 16 Jul 2010 23:51:08 +0000 |
| Subject: | note 98947 added to function.getimagesize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170930@lists.php.net to get a copy of this message | ||
I've discovered that when using a URL reference
with getimagesize and the file name or path contains
space characters the space characters must be
converted to '%20' before getimagesize will work.
Example:
getimagesize("hello there/file with spaces.jpg")
will work fine BUT
getimagesize
("http://www.mydomain.com/hello there/file with
spaces.jpg")
will not and must instead be rendered as:
getimagesize
("http://www.mydomain.com/hello%20there/file%20with%20spaces.jpg")
in order for it to work properly.
----
Server IP: 69.147.83.197
Probable Submitter: 173.14.77.77
----
Manual Page -- http://www.php.net/manual/en/function.getimagesize.php
Edit -- https://master.php.net/note/edit/98947
Del: integrated -- https://master.php.net/note/delete/98947/integrated
Del: useless -- https://master.php.net/note/delete/98947/useless
Del: bad code -- https://master.php.net/note/delete/98947/bad+code
Del: spam -- https://master.php.net/note/delete/98947/spam
Del: non-english -- https://master.php.net/note/delete/98947/non-english
Del: in docs -- https://master.php.net/note/delete/98947/in+docs
Del: other reasons-- https://master.php.net/note/delete/98947
Reject -- https://master.php.net/note/reject/98947
Search -- https://master.php.net/manage/user-notes.php