superpimp Posted April 23, 2006 Share Posted April 23, 2006 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! Quote Link to comment https://forums.phpfreaks.com/topic/8180-fopen-timeout/ Share on other sites More sharing options...
wildteen88 Posted April 23, 2006 Share Posted April 23, 2006 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 Link to comment https://forums.phpfreaks.com/topic/8180-fopen-timeout/#findComment-29832 Share on other sites More sharing options...
superpimp Posted April 24, 2006 Author Share Posted April 24, 2006 [!--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 Quote Link to comment https://forums.phpfreaks.com/topic/8180-fopen-timeout/#findComment-30136 Share on other sites More sharing options...
kenrbnsn Posted April 24, 2006 Share Posted April 24, 2006 Code? What errors?Ken Quote Link to comment https://forums.phpfreaks.com/topic/8180-fopen-timeout/#findComment-30138 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.