Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] check URL From: Colin Viebrock (cmv <email protected>)
Date: 07/31/98

Also sprach Casper Scheffer (at 12:23 PM 7/31/98 +0200) ...
>Hello I'm using this code to check wether an URl exists:

Doesn't the file() command accept URLs? If so, then this is a bit easier:

<?
if (file($urltocheck)):
        echo "URL is ok";
else:
        echo "URL is bad";
endif;
?>

.........................................................................
Colin Viebrock Creative Director - Private World Communciations
cmv <email protected> http://www.privateworld.com
ICQ: 11386088

                                                           Life is cheap,
                                        but the accessories can kill you.

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3