Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

[PHP] [!NEWBIE ALERT!] fread() question From: Levi Zander (lzander <email protected>)
Date: 02/23/03

trying to parse a URL and write html code to a file, then search the file
for a string between <TITLE> ... </TITLE> how would I implement the fread
function below, and regular expressions to read the specific conent. thx

or is there a php function that can return the TITLE of a URL?

<?php
$string = implode("", file($url));
$fp = fopen("temp.txt", "w");
fwrite($fp, $string);
fclose($fp);
?>

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