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
filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h
Bluetooth RSSI & VIsta
Okie I got 4 Bluetooth adapters, a DBT-120 by Dlink, A Zonet Microsoft Bluetooth which is what I use
Take info from one coloum and move to another
Hi all,
I have this:
Code: [Select]$array = "SELECT stock_id FROM stocks WHERE stock_
string to currency format
Hi guys...
Actually I chunk out some data from txtfile and one of the data contains amount va
Multiple websites question.
Hi, does php have any functionality that enables a programmer to extract information from a website
Newb advice
Hi all,
I'm a flash front end designer and I've taken on a project that needs some back end p
A href problem under php
Hello...
I tried to explain the issue in an earlier post.. but was not clear enough....
Hardcopy printing is to wide
I want to make a hardcopy at runtime of my active form like this
Program with calculate Meteorologic measurements
Hello I'm a beginner and I want to make a program with calculate Meteorologic measurements:
ba
Not connecting to DB using ruby, error:env.c:257:in oci8lib.so: ORA-12154:
Hi All,
I am trying to connect to the database server from the client server using ruby and f