#18609 [Opn->Fbk]: ImageCreateFromJPEG can't fetch from a URL

From: Date: Sat, 27 Jul 2002 16:36:53 +0000
Subject: #18609 [Opn->Fbk]: ImageCreateFromJPEG can't fetch from a URL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15422@lists.php.net to get a copy of this message
ID: 18609 Updated by: sniper@php.net Reported By: midg3t@mail.com -Status: Open +Status: Feedback Bug Type: GD related Operating System: Windows 2000 PHP Version: 4.2.2 New Comment: Try this snapshot: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#15422) next »