How would I use FOPEN to validate a URL?

here is what I already have and it's not working properly.

$url=$row[url];

echo "Old URL = ".$url."<br>";

$fp = @fopen($url,"r"); 
if ($fp){
echo "Valid URL<br>";
}else{ 
echo "URL IS NOT VALID";
$url="http://";
}

echo "New URL = ".$url."<br>";



Kenneth R Zink II     [EMAIL PROTECTED]    ICQ# 5095094
'87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!!  
http://www.s-series.org/htm/windstorm/project-windstorm.htm
'85 3.4L Carbed Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI DIS !!!  
http://www.s-series.org/htm/firestorm/firestorm.htm
Racing by the Grace of God!!

Reply via email to