Hey guys,
I cant figure out what is wrong with this code can anyone help??
Thank you so much.
<head>
<title>Url Finder</title>
</head>
<body>
<?
echo "<h1>URL Finder 2002</h1>";
// connect to URL and read information
theurl = "www.yahoo.com";
if (!($fp = fopen($theurl, "r")))
{
echo "Could not open URL";
exit;
}
$contents = fread($fp, 1000000);
fclose($fp);
preg_match_all("/((http|ftp):\/\/[^ ]*)/i",$contents,$array);
echo $array[1];
?>
</body>