snidog
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Problem with fopen() timing out
in PHP Coding Help
Posted
Warning: fopen(http://255.255.255.255/fileName.asp) [function.fopen]: failed to open stream: Connection timed out in /var/www/server/file.php on line X
I use fopen() on the same server to open a different external URL and it worked fine. I also tested on a different external URL that was IP-based, and it worked fine. I have verified that allow_url_fopen is enabled (obviously, since the other tests worked fine). The only thing I can think of is that fopen is choking on the amount of data -- perhaps 625K of XML data is too much for it.
Does anyone know a way around this? Thanks in advance!