Hi
I want to check is some server (ex: www.yahoo.com) is online, but do it within reasonable timeframe (3sec). Whic means that if no response in 3s, script execution should continue normally.
If I tried to use fsockopen() with timeout set, often it didn't quit and continue script execution within this timeout time, also often it just hanged about 10s and then browser told that can't get response from script.
Even set_time_limit() doesn't work because it doesn't measure time when system and network calls are executed although this wouldn't be the solution anyway.
Is there a chance to do this the way that leaves control over execution time?
Henry