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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to