note 100338 modified in function.imagecreatefromjpeg by danbrown

From: Date: Fri, 08 Oct 2010 22:20:35 +0000
Subject: note 100338 modified in function.imagecreatefromjpeg by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173092@lists.php.net to get a copy of this message
If you have a blank in the file name, and you use a local URL, this function works. Not so with a fully qualified URL <?php $url = 'RAY_rgb 300x100.jpg'; $img = ImageCreateFromJPEG($url); // WORKS PERFECTLY $url = 'http://www.example.com/RAY_rgb 300x100.jpg'; $img = ImageCreateFromJPEG($url); // FAILS Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error ?> --was-- If you have a blank in the file name, and you use a local URL, this function works. Not so with a fully qualified URL <?php $url = 'RAY_rgb 300x100.jpg'; $img = ImageCreateFromJPEG($url); // WORKS PERFECTLY $url = 'http://www.example.com/RAY_rgb 300x100.jpg'; $img = ImageCreateFromJPEG($url); // FAILS Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error http://php.net/manual/en/function.imagecreatefromjpeg.php

« previous php.notes (#173092) next »