#18609 [Fbk->Opn]: ImageCreateFromJPEG can't fetch from a URL
| From: | midg3t at mail dot com | Date: | Sat, 27 Jul 2002 16:37:23 +0000 |
| Subject: | #18609 [Fbk->Opn]: ImageCreateFromJPEG can't fetch from a URL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15423@lists.php.net to get a copy of this message | ||
ID: 18609
User updated by: midg3t@mail.com
Reported By: midg3t@mail.com
-Status: Feedback
+Status: Open
Bug Type: GD related
Operating System: Windows 2000
PHP Version: 4.2.2
New Comment:
Just a note that I should have made the two example URLs the same -
they were before I edited them.
Previous Comments:
------------------------------------------------------------------------
[2002-07-27 12:36:52] sniper@php.net
Try this snapshot:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-07-27 12:35:11] midg3t@mail.com
This bug has been posted once before, but the discussion was closed due
to inactivity.
Using GD "1.6.2 or higher" or GD 2 (the versions with PHP 4.2.2),
ImageCreateFromJPEG() produces an error when trying to fetch an image
from a URL. It works fine for grabbing local files. I am using the PHP
SAPI module for Apache 1.3.26.
To generate the error, just use the function
imagecreatefromjpeg("http://www.somesite.com/image.jpg");
It returns the following error:
Warning: imagecreatefromjpeg: Unable to open
'http://www.someserver.com/image.jpg' for
reading in c:\folder\file.php
on line 53
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18609&edit=1