#18609 [NEW]: ImageCreateFromJPEG can't fetch from a URL
| From: | midg3t at mail dot com | Date: | Sat, 27 Jul 2002 16:35:12 +0000 |
| Subject: | #18609 [NEW]: ImageCreateFromJPEG can't fetch from a URL | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15421@lists.php.net to get a copy of this message | ||
From: midg3t@mail.com
Operating system: Windows 2000
PHP version: 4.2.2
PHP Bug Type: GD related
Bug description: ImageCreateFromJPEG can't fetch from a URL
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 bug report at http://bugs.php.net/?id=18609&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18609&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18609&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18609&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18609&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18609&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18609&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18609&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18609&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18609&r=globals