What are causes of a connection-timeout with fopen()?
Posted on
16th Feb 2014 07:03 pm by
admin
Hello! Here is the situation: The server I host my website on just upgraded it's PHP build from 4.4.* to 5.2.4. Not just PHP was upgraded, MySQL, postGres, and (I think) Apache were upgraded as well. Before the upgrade, my site worked perfectly.
But now, whenever I access my site, it takes a long time to complete a request and all that is returned is "Warning: fopen(<THE_URL>) [function.fopen]: failed to open stream: Connection timed out in..."
Did you know?Explore Trending and Topic pages for more stories like this.
I know where the error is -- it's in my templating class. I check the remote server's configuration and the directive "allow_url_fopen is enabled and safe_mode is disabled.
The strange thing is that my script works on my local server perfectly which is using PHP build 5.2.5. I looked for any differences between my local-server's PHPINFO() and my remote-server's PHPINFO() and, while I didn't find anything eye-catching yet, I noticed that virtual-directory-support is disabled on my remote-server and it is enabled on my local-server. Would that be what's causing the problem? If not, what are some potential causes for fopen() to behave this way?
No comments posted yet
Your Answer:
Login to answer
228
12
Other forums
Array help
Hello i got this code to fetch data from database but it is not working it displays
7
Array
Lining up columns nicely.
Hello everyone, I'm having problems with making columns line up properly. Here is my code:
Help Optimizing code
Good Morning,
I wrote a small import function for a website of mine and I know there has to b
array & querys help/advice.
Ok so here goes , I have a mysql database and basically here's what I need to do.
// foreach
Posting Serialized Data Not Working
I am trying to send an object from one PHP file to another using POST. I serialize the object and th
Material xxx does not exist in plant xxx
Dear All,
I am working for a steel project which is repetitive manufacturing.
TimeStamp Column Problem...
I'm mad at my self and thinking I'm a little retarded. It just be some one mistake I'm missing here.
Find occurences of unicode characters in string
I need to prohibit filenames with everything but English characters and numbers but regexp and strin
Setting condidtions for an input box
Hi all,
I would like to set a condition in a txt box that says the number a user enters has t
Where am I going wrong
Been trying to work this out for hours
I have two tables called 'Genres' and 'Films'. Genre