file_get_contents not working
- by DCD
I am trying to read a file in with file_get_contents () - it's a remote HTTP file, and I've checked the URL and it's fine. Only it doesn't work.
More to the point the the error message is the standard Firefox server error:
The connection was reset
The connection to the server was reset
while the page was loading.
... rather than any form of PHP error. It also only took a couple of seconds to come back so it can't be hitting the script runtime limit - any ideas on what is going wrong here?
It's PHP 5 on Apache 2, running on Windows btw.