Re: IS there a way.

From: Date: Sat, 01 Mar 2003 14:07:50 +0000
Subject: Re: IS there a way.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-137689@lists.php.net to get a copy of this message
At 05:40 01.03.2003, Philip J. Newman said: --------------------[snip]-------------------- > Is there a way to PING a URL and check if it returns a valid code like 200 >... ?? --------------------[snip]-------------------- Ping doesn't return a "200 OK" code... If you want to check for the existence of a webserver at the given address you should try to read some data from it. To check the return code you need a tool to return the HTTP headers - check out cUrl (also supports SSL), or go on your own using fsockopen(). -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#137689) next »