#18609 [Com]: ImageCreateFromJPEG can't fetch from a URL
ID: 18609 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Scripting Engine problem Operating System: Windows 2000 PHP Version: 4.3.0-dev Assigned To: wez New Comment: Thanks for your help, all works fine now. If it isn't too much trouble to ask, why would the IGNORE_URL_WIN flag have been used in the past? Previous Comments: [2002-10-08 08:23:42] [EMAIL PROTECTED] Did you remember to replace ALL the existing PHP related dlls with the ones found in the snapshot package? php4ts.dll and all the extensions and their extra dlls. [2002-10-08 06:57:54] [EMAIL PROTECTED] I downloaded that snapshot, maybe because of an error and maybe just because I don't have very much experience in running a PHP server, I got this error on starting Apache... (null)(): Unable to load dynamic library 'C:\Program Files\PHP\extensions/php_gd.dll' - The specified procedure could not be found. The php_gd.dll file is in the extensions directory, so I think it may have to do with there being a forwardslash instead of backslash. The extensions directory is configured correctly in my php.ini file. extension_dir = "C:\Program Files\PHP\extensions" I apologise if I have made an oversight. [2002-09-25 11:31:46] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip The problem is that the GD extension explicitly disables URL access under windows (it uses the IGNORE_URL_WIN flag when opening the stream). Yesterday, I enabled this functionality along with include/require for remote files. Please try a snapshot and let us know how you get on. [2002-09-25 09:38:22] [EMAIL PROTECTED] streams related... [2002-08-29 13:42:20] [EMAIL PROTECTED] I could not verify this (on Linux): [derick@kossu derick]$ php -v PHP 4.3.0-dev (cli), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies [derick@kossu derick]$ php > foo.png http://midg3t.homeip.net/images/psu-engrish.jpg";); imagepng($f); ?> [derick@kossu derick]$ file foo.png foo.png: PNG image data, 342 x 435, 8-bit colormap, non-interlaced Derick The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18609 -- Edit this bug report at http://bugs.php.net/?id=18609&edit=1
#18609 [Com]: ImageCreateFromJPEG can't fetch from a URL
ID: 18609 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Scripting Engine problem Operating System: Windows 2000 PHP Version: 4.3.0-dev Assigned To: wez New Comment: I downloaded that snapshot, maybe because of an error and maybe just because I don't have very much experience in running a PHP server, I got this error on starting Apache... (null)(): Unable to load dynamic library 'C:\Program Files\PHP\extensions/php_gd.dll' - The specified procedure could not be found. The php_gd.dll file is in the extensions directory, so I think it may have to do with there being a forwardslash instead of backslash. The extensions directory is configured correctly in my php.ini file. extension_dir = "C:\Program Files\PHP\extensions" I apologise if I have made an oversight. Previous Comments: [2002-09-25 11:31:46] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip The problem is that the GD extension explicitly disables URL access under windows (it uses the IGNORE_URL_WIN flag when opening the stream). Yesterday, I enabled this functionality along with include/require for remote files. Please try a snapshot and let us know how you get on. [2002-09-25 09:38:22] [EMAIL PROTECTED] streams related... [2002-08-29 13:42:20] [EMAIL PROTECTED] I could not verify this (on Linux): [derick@kossu derick]$ php -v PHP 4.3.0-dev (cli), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies [derick@kossu derick]$ php > foo.png http://midg3t.homeip.net/images/psu-engrish.jpg";); imagepng($f); ?> [derick@kossu derick]$ file foo.png foo.png: PNG image data, 342 x 435, 8-bit colormap, non-interlaced Derick [2002-08-29 12:14:23] [EMAIL PROTECTED] Attempt to open a remote image via imagecreatefromjpeg() results in a 'failed to create stream: invalid argument' error. Opening the same url with fopen() works properly. [2002-08-29 04:19:39] [EMAIL PROTECTED] http://midg3t.homeip.net/images/psu-engrish.jpg";); ?> The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18609 -- Edit this bug report at http://bugs.php.net/?id=18609&edit=1