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
PHP referral database. I would like this form to email the referrer.
Okay, Hello I've been trolling for years. This the first time I've ever asked for php help. Normally
UDP server recvfrom() always returns -1? :(
Hello all,
I am getting a very strange error in my code :( I am writing a server application in C
Character Set Setup
Whats the best character set to use if you want every character to work, and also how do you make yo
EXplanation help
Hey all,
I am still fairly new to PHP programming and I am trying to put together a page wher
Multiple if statements
Ok so seems basic but for some reason I'm not doing it right. What I want is to be able to have 2 se
ereg_replace()
Basically what i need to do is
$title = "This Suck's"
$striped = ereg_repl
a function to check directory depth
I'm working on a php script to upload files in to a set directory.
the user can select to upload
PHP mail() rejected by SMTP
I'm currently working on a newsletter application which is installed on a windows 2003 server runnin
EU VAT Package 2010
Does any one know whether SAP will be developing new reporting functionality due the new VAT rules t
noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.