#18609 [Com]: ImageCreateFromJPEG can't fetch from a URL
| From: | midg3t at mail dot com | Date: | Tue, 08 Oct 2002 11:57:55 +0000 |
| Subject: | #18609 [Com]: ImageCreateFromJPEG can't fetch from a URL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21798@lists.php.net to get a copy of this message | ||
ID: 18609
Comment by: midg3t@mail.com
Reported By: midg3t@mail.com
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] wez@php.net
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] derick@php.net
streams related...
------------------------------------------------------------------------
[2002-08-29 13:42:20] derick@php.net
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
<?php
$f =
imagecreatefromjpeg("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] iliaa@php.net
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] midg3t@mail.com
<?php
imagecreatefromjpeg("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