Bug #54428 [Fbk->NoF]: [function.imagecreatefromjpeg]: failed to open stream: HTTP request failed!

From: Date: Tue, 15 Oct 2013 11:54:27 +0000
Subject: Bug #54428 [Fbk->NoF]: [function.imagecreatefromjpeg]: failed to open stream: HTTP request failed!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182182@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54428&edit=1 ID: 54428 Updated by: php-bugs@lists.php.net Reported by: hoangvu4000 at gmail dot com Summary: [function.imagecreatefromjpeg]: failed to open stream: HTTP request failed! -Status: Feedback +Status: No Feedback Type: Bug Package: GD related Operating System: Windows 7 PHP Version: 5.2.17 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2013-06-25 16:41:15] felipe@php.net What if you supply an url encoded one? ------------------------------------------------------------------------ [2011-03-31 04:29:30] hoangvu4000 at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.imagecreatefromjpeg#Description --- Warning: imagecreatefromjpeg(http://truyentranhtuan.com/IMAGES/SITE IMAGES/Kimi_ni_Todoke.jpg) [function.imagecreatefromjpeg]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/thegioitru/domains/thegioitruyentranh.vn/public_html/z/facebook.php on line 39 Every things are OK if the URL don't have any space, Ext: imagecreatefromjpeg(http://acb.com/PhotoImages.jpg) ==> OK But: imagecreatefromjpeg(http://acb.com/Photo Images.jpg) ==> "failed to open stream: HTTP request failed!" (have one space in "Photo" & "Images") we get images form orther host, so we can rename the suorce images, How we can get it with imagecreatefromjpeg. if this is Bug, please fix it. Thank! Test script: --------------- //return: OK //$up_file = "http://truyentranhtuan.com/IMAGES/MANGA/Kimi_ni_Todoke/034/01.JPG"; // return: "failed to open stream: HTTP request failed!" $up_file = "http://truyentranhtuan.com/IMAGES/SITE IMAGES/Kimi_ni_Todoke.jpg"; $new_image=imagecreatefromjpeg($up_file); Expected result: ---------------- Warning: imagecreatefromjpeg(http://truyentranhtuan.com/IMAGES/SITE IMAGES/Kimi_ni_Todoke.jpg) [function.imagecreatefromjpeg]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/thegioitru/domains/thegioitruyentranh.vn/public_html/z/facebook.php on line 39 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=54428&edit=1

« previous php.bugs (#182182) next »