fsockopen() to remote URL: what if remote URL "times out"?

From: Date: Fri, 10 Jan 2003 08:18:16 +0000
Subject: fsockopen() to remote URL: what if remote URL "times out"?
Groups: php.general 
Request: Send a blank email to php-general+get-131058@lists.php.net to get a copy of this message
I have a question about the usage of fsockopen() to open and "scrape" the contents of a remote URL: if the contents take a very long time to load on the remote URL either due to server or coding issues, is there a way for the socket on the PHP end to time out, that is, quit trying to "scrape" contents from the remote site and post a default message instead? Just wondering Thanx Phil

« previous php.general (#131058) next »