Cheap Ping

From: Date: Fri, 13 Apr 2007 05:16:20 +0000
Subject: Cheap Ping
Groups: php.general 
Request: Send a blank email to php-general+get-252820@lists.php.net to get a copy of this message
Hello, I am trying to find a simple way to test to see if a web site is up or not. I tried using $file = file_get_contents("http://www.example.com/page.html"); but when the site is down it takes too long and seems to time out terminating the script rather than returning a false I can test. Is there some way I can set a shorter limit? Or something? Any other suggestions? Best, Craig ------------------------------------------------------
-     Virtual Phonecards - Instant Pin by Email      -
-           Large Selection - Great Rates            -
-     http://speedypin.com/?aff=743&co_branded=1     -
------------------------------------------------------ 
**************************************
*                                    *
*          Craig Spencer             *
*      ccspencer@SoftHome.net        *
*                                    *
************************************** 


« previous php.general (#252820) next »