Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

[PHP3] check URL From: Casper Scheffer (cs <email protected>)
Date: 07/31/98

Hello I'm using this code to check wether an URl exists:

It doesn't work in all cases. What's wrong or should I use other code?

Thanks

<?php
/*
$fp = fopen("http://www.hp.com", "r" );
echo "<br>";
echo "http://$naamurl";
echo "<br>";
echo $fp;
echo "<br>";
 IF ($fp <> false) {
  echo "URL exists" ;
} ELSE {
  echo "URL doesn't exist" ;
}
 fclose ($fp);
*/
?>

-------------------------------------------------------------
 Spring Vision
 Oudegracht 179 aan de werf
 Postbus 10117
 3505 AB Utrecht
 The Netherlands

 telefoon +31 30 2333771
 telefax +31 30 2311793
 email casper <email protected>
 internet http://www.springvision.com
-------------------------------------------------------------

--
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