php-general | 2003022
Date: 02/23/03
- Next message: John Taylor-Johnston: "Re: [PHP] University researcher's question"
- Previous message: Justin French: "Re: [PHP] Another Logging Question"
- Next in thread: Chris Hayes: "Re: [PHP] [!NEWBIE ALERT!] fread() question"
- Reply: Chris Hayes: "Re: [PHP] [!NEWBIE ALERT!] fread() question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: John Taylor-Johnston: "Re: [PHP] University researcher's question"
- Previous message: Justin French: "Re: [PHP] Another Logging Question"
- Next in thread: Chris Hayes: "Re: [PHP] [!NEWBIE ALERT!] fread() question"
- Reply: Chris Hayes: "Re: [PHP] [!NEWBIE ALERT!] fread() question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

