file_get_contents not working

Posted by DCD on Stack Overflow See other posts from Stack Overflow or by DCD
Published on 2010-03-28T16:25:58Z Indexed on 2010/03/28 16:33 UTC
Read the original article Hit count: 133

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about php

Related posts about file-get-contents