Re: Bug #1545: ImageCreateFromGIF does not support URLs
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Bug #1545: ImageCreateFromGIF does not support URLs | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-6996@lists.php.net to get a copy of this message | ||
> Documentation currently states that ImageCreateFromGIF will load an image from either a file
> name or a URL.
>
> a) there is no current way to differentiate between a relative URL
> ("/images/blah.gif") and file names ("/home/httpd/images/blah.gif").
How is /images/blah.gif a relative URL? URL's start with HTTP:// or
FTP://
> b) the function does not allow remote images to be loaded.
> ("http://www.otherserver.com/otherblah.gif").
Sure it does
> c) the function does not allow images to be loaded from virtual directories in Apache. For
> instance, if the following is in httpd.conf:
> <PRE>
> ProxyPass /mirror/ http://www.otherserver.com/
> </PRE>
> and viewing http://www.thisserver.com/mirror/otherblah.gif
> works, using
> <PRE>
> ImageCreateFromGIF("/mirror/otherblah.gif");
> </PRE>
> and
> <PRE>
>
> ImageCreateFromGIF("http://www.thisserver.com/mirror/otherblah.gif");
> </PRE>
> both do not work.
>
> Either the documentation needs changed, or (preferably) the function needs added functionality.
This works as well.
-Rasmus