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
Advice on how to delete a mysql row using my form
Hi,
I am very new to php and am struggling to work out how to delete a portfolio item (a row
Do While statement
hi guys,
This may sound trivial but im new to php and as part of an assignmenti have to const
Quick fix: Conditional statement with an array
Hi, I'm getting the temperature value off of the Environment Canada website along with the icon file
how to hide input fields on selection screen using variant attribute
Hello all,
I want to know how to hide input fields on selection screen using variant attr
Backflush
I am looking for a report in SAP that would give me a list of all parts that are populated with a ba
Output Buffering question
Hi all,
I've been trying to wrap my head around output buffering. So far I've found tons of
user administration
Dear @all,
what I have to do to set the user defaults for new users. At the moment I woul
simple php table loop
Hi all,
I've the following code
<?php // Create category options
PHP switch function help
Hi, I am trying to create a search function for a directory website. On the search function on html
=> and <=
So I was digging through some code when I came across the <= operator. This is the first tim