Re: document title
| From: | samuel dot luescher at gmx dot net | Date: | Thu, 30 Nov 2000 17:19:00 +0000 |
| Subject: | Re: document title | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28081@lists.php.net to get a copy of this message | ||
Well ok, I think that would work, but actually, I'd rather not read in a
file. I was thinking about something like an environment variable or
something similar to $PHP_SELF, but containing the doc title.
Isn't there anything like that?
> // 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
> >
>
--
Sent through GMX FreeMail - http://www.gmx.net