|
I run a program that uses php's file_get_contents and it returns Warning: file_get_contents(URL): failed to open stream: Connection timed out in (php script location) on line # Running the same script runs perfectly fine on my other server. Any suggestions/reasons? Thank You |
Could you tell us what the URL is that is trying to be retrieved? It is possible that it is actually timing out. -Wayne K., WebFaction Customer Support.
I have similar problem:
Warning: file_put_contents file_put_contents(/home/mydir) [function.file-put-contents]: failed to open stream: Is a directory
Also works fine on my other server.
I found somewhere explanation "It seams that your host server don't support file_put_contents()"
@Darc - could you please log a ticket via your WebFaction Control Panel? This will allow us to access your account and server details to better assist you. Wayne K., WebFaction Customer Support.