Re: Get Pagetitle with PHP
| From: | Pushkar Pradhan | Date: | Thu, 02 May 2002 14:20:22 +0000 |
| Subject: | Re: Get Pagetitle with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95699@lists.php.net to get a copy of this message | ||
Sine PHP has so many string parsing functions, you can grab the text
betn.
<title>...</title>
e.g. HTML code:
<html>
....
..
</html>
Read the whole file by line into an array -
http://www.php.net/manual/en/function.file.php
search for line containing <title>....
for($lines as $onelineatatime) {
strpos($onelineatatime, "<title>")
remove <title> and </title>
substr()
> Hi,
>
> is it possible to get the HTML-Pagetitle with PHP?
>
> Thanks for help.
> Ivo
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
-Pushkar S. Pradhan