Thank you Jason.

I'm still trying to figure out how to implement the strip_tags() function on
the script below so that the output of the URL is straight text.

Please advise if you get a chance.

TR
.................................................

<html>
<head>
<title>Retrieving text from a URL</title>
</head>
<body>
<?
$theurl="http://www.blah.com";;
if (!($fp=fopen($theurl, "r")))
 {
  echo "Could not open the URL";
  exit;
 }
$contents= fread($fp, 1000000);
fclose($fp);
echo "$contents";
echo "<br>"."This information retrieved from<br>"."<a
href=\"$theurl\">$theurl</a><br>"."on ".(date("l jS F Y g:i a T"));
?>
</body>
</html>




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

Reply via email to