Jump to content

Archived

This topic is now archived and is closed to further replies.

superpimp

fopen timeout

Recommended Posts

I'm checking a whole bunch of url's, it's gonna take ages, is it possible to set a timeout, after which fopen stops and reports it dead?

thx!

Share this post


Link to post
Share on other sites
You might want to look into [a href=\"http://uk.php.net/manual/en/function.fsockopen.php\" target=\"_blank\"]fsockopen[/a] instead. With fsockopen you can set when it timesout.

Share this post


Link to post
Share on other sites
[!--quoteo(post=367705:date=Apr 23 2006, 05:44 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 23 2006, 05:44 PM) [snapback]367705[/snapback][/div][div class=\'quotemain\'][!--quotec--]
You might want to look into [a href=\"http://uk.php.net/manual/en/function.fsockopen.php\" target=\"_blank\"]fsockopen[/a] instead. With fsockopen you can set when it timesout.
[/quote]

When I use fsockopen I can't get it to work :s

Share this post


Link to post
Share on other sites

×

Important Information

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.