R: [PHP] doc name
| From: | (Delbono) | Date: | Fri, 17 Nov 2000 02:18:08 +0000 |
| Subject: | R: [PHP] doc name | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-25841@lists.php.net to get a copy of this message | ||
Maybe the person needed
the
<title>$txtTitle</title>
kind of title
-----Messaggio originale-----
Da: Ignacio Vazquez-Abrams <ignacio@openservices.net>
A: Matt Stone <matt@planetveggie.com>
Cc: Rodney Davis <rodney@wincubic.com>; PHP LIST <php-general@lists.php.net>
Data: venerdì 17 novembre 2000 2.51
Oggetto: RE: [PHP] doc name
>On Fri, 17 Nov 2000, Matt Stone wrote:
>
>> Does that return the same value as $SCRIPT_NAME?
>>
>> -----Original Message-----
>> From: Ignacio Vazquez-Abrams [mailto:ignacio@openservices.net]
>> Sent: Friday, 17 November 2000 11:46 AM
>> To: Rodney Davis
>> Cc: PHP LIST
>> Subject: Re: [PHP] doc name
>>
>>
>> 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
>> >
>>
>> Try $HTTP_SERVER_VARS["PHP_SELF"] or just $PHP_SELF.
>>
>
>No. If you have a script as http://www.example.com/example.php3
>and you
>call it as
>"http://www.exapmle.com/example.php3/something",
>$SCRIPT_NAME
>contains "/example.php3", but $PHP_SELF contains
>"/example.php3/something".
>
>--
>Ignacio Vazquez-Abrams <ignacio@openservices.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
>
>