Re: PHP_SELF NEW.....?????
| From: | David Robley | Date: | Tue, 04 Sep 2001 06:40:37 +0000 |
| Subject: | Re: PHP_SELF NEW.....????? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65849@lists.php.net to get a copy of this message | ||
On Tue, 4 Sep 2001 08:58, Ardani Sarjito wrote:
> hi!
>
> I have tried to undersatand the usage of PHP_SELF but I still don't get
> it. Could anybody please explain it in simple palin English to this
> poor slow guy who has just learn PHP?
>
> Thank you so much for reviewing this email.
>
> I'm just tring to make a game which require this function but luck is
> not on my side at the moment.
>
> Ardani
From the docs:
PHP_SELF
The filename of the currently executing script, relative to the document
root. If PHP is running as a command-line processor, this variable is not
available.
So it returns the name of the current script. For the simplest example,
try the following:
<?php
echo 'This is ' . $PHP_SELF
?>
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Any closet is a walk-in closet if you try hard enough.