RE: Is the link correct?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From the manual notes:

<?php 

if (@fclose(@fopen("http://www.example.com";, "r"))) { 
     print("File exists."); 
} else { 
     print("File does not exist."); 
} 

?>

 
Humberto Silva
World Editing
Portugal
 


-----Original Message-----
From: Disko_kex [mailto:disko_kex@swedish-mushroom.com] 
Sent: quinta-feira, 15 de Janeiro de 2004 9:34
To: php-windows@lists.php.net
Subject:  Is the link correct?


Hi

$link = "http://www.does_not_exists.com";;

Is there a way to check if the link is correct and return true or false?

Thanks

//jocke

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux