Re: R: [PHP] doc name
| From: | Ignacio Vazquez-Abrams | Date: | Fri, 17 Nov 2000 02:16:14 +0000 |
| Subject: | Re: R: [PHP] doc name | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25844@lists.php.net to get a copy of this message | ||
On Fri, 17 Nov 2000, Delbono wrote:
> Maybe the person needed
>
> the
>
> <title>$txtTitle</title>
>
>
> kind of title
>
> >> On Thu, 16 Nov 2000, Rodney Davis wrote:
> >>
> >> > I want to write a script that gets a specific page_id from a mysql
> >> > database based on the url or the doc title. Is there a function
> >> > that returns the doc title or the url?
> >> >
> >> > thanks,
> >> >
> >> > rodney
> >> >
True. $PHP_SELF will only give you the part after the hostname and
domain. If you want what's in the title tag, you're going to have to parse
the document, a task best described as "ugly".
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>