WebFaction
Community site: login faq

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

asked 05 Oct '12, 15:55

ascrookes93
111
accept rate: 0%

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.

(05 Oct '12, 19:08) waynek

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()"

(06 Nov '12, 03:57) Darc

@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.

(06 Nov '12, 17:07) waynek
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×97
×1

question asked: 05 Oct '12, 15:55

question was seen: 4,163 times

last updated: 06 Nov '12, 17:07

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM