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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php