Page 1 of 1

PHP doesn't think that an existent file exists!!! :o

Posted: Thu Apr 15, 2010 1:35 pm
by OmerHassan
The file I'm talking about is this: http://www.logosredrawn.co.uk/uploads/2 ... 5547Autumn Leaves.jpg

If I enter its URL in my browser, I see the image but when I run this PHP code:

Code: Select all

<?php readfile('http://www.logosredrawn.co.uk/uploads/2/127118456311303344421631155547Autumn Leaves.jpg') ?>
I get this error:
Warning: readfile(http://www.logosredrawn.co.uk/uploads/2 ... 5547Autumn Leaves.jpg) [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

Re: PHP doesn't think that an existent file exists!!! :o

Posted: Thu Apr 15, 2010 1:37 pm
by OmerHassan
I resolved it. Just replaced the space in the URL by %20 :D