Re: document title
| From: | Jason Lavigne | Date: | Fri, 01 Dec 2000 02:11:01 +0000 |
| Subject: | Re: document title | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28034@lists.php.net to get a copy of this message | ||
I can not belive I put a bug on here, good code:
// Get just title from HTML
$startstr = "<title>";
$endstr = "</title>";
$startpos = strpos($html_file, $startstr);
$endpos = strpos($html_file, $endstr);
$only_title = substr($html_file, $startpos + strlen($startstr), ($endpos -
$startpos - strlen($startstr)));
Sorry,
Jay
----- Original Message -----
From: "Jason Lavigne" <jlavigne@stonecroft.net>
To: <samuel.luescher@gmx.net>
Cc: <php-general@lists.php.net>
Sent: Thursday, November 30, 2000 9:05 PM
Subject: Re: [PHP] document title
> // Get just title from HTML
> $startstr = "<title>";
> $endstr = "</title>";
> $startstr = strpos($html_file, $startstr);
> $endpos = strpos($html_file, $endstr);
> $only_title = substr($html_file, $startpos + strlen($startstr),
($endpos -
> $startpos - strlen($startstr)));
>
> Hope it helps.
>
> Jay
>
> ----- Original Message -----
> From: <samuel.luescher@gmx.net>
> To: <php-general@lists.php.net>
> Sent: Thursday, November 30, 2000 7:19 AM
> Subject: [PHP] document title
>
>
> > is there a way to retrieve the title of the current document (as
specified
> > in the header)?
> >
> > --
> > Sent through GMX FreeMail - http://www.gmx.net
> >
> > --
> > 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
> >
>
>
> --
> 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
>