Jump to content


Photo

fopen timeout


  • Please log in to reply
3 replies to this topic

#1 superpimp

superpimp
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 23 April 2006 - 02:10 PM

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!

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 23 April 2006 - 03:44 PM

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.

#3 superpimp

superpimp
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 24 April 2006 - 03:16 PM

[!--quoteo(post=367705:date=Apr 23 2006, 05:44 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 23 2006, 05:44 PM) View Post[/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

#4 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 24 April 2006 - 03:20 PM

Code? What errors?

Ken




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users