Re: Getting the title of a web page
| From: | Chris Lambert - WhiteCrown Networks | Date: | Wed, 11 Jul 2001 10:41:49 +0000 |
| Subject: | Re: Getting the title of a web page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57343@lists.php.net to get a copy of this message | ||
<?preg_match("/\<title\>(.*)\<\/title\>/i", implode("",
file("http://www.php.net/")), $title);?>
<?=$title[1]?>
/* Chris Lambert, CTO - chris@whitecrown.net
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
----- Original Message -----
From: Heiko Wilms <wilms@fga.mbau.fh-hannover.de>
To: <php-general@lists.php.net>
Sent: Wednesday, July 11, 2001 6:32 AM
Subject: [PHP] Getting the title of a web page
Hi,
when I open a web page within my php-script with fopen(...) I only want
to get back the title of the page. How can I do this?
Heiko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net