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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
OmerHassan
Forum Newbie
Posts: 3
Joined: Thu Feb 18, 2010 1:40 pm

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

Post 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
OmerHassan
Forum Newbie
Posts: 3
Joined: Thu Feb 18, 2010 1:40 pm

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

Post by OmerHassan »

I resolved it. Just replaced the space in the URL by %20 :D
Post Reply