Re: [PHP] How to obtain the script's path?

2002-02-12 Thread Lars Torben Wilson
On Tue, 2002-02-12 at 13:44, Alex Shi wrote: > Hi, > > I have a script need to be launched from terminal, and I want > it to report the script's path. Because this script is required to > be launched from command line, so those Apache env vars > have not effect work, even $PHP_SELF don't work. >

[PHP] How to obtain the script's path?

2002-02-12 Thread Alex Shi
Hi, I have a script need to be launched from terminal, and I want it to report the script's path. Because this script is required to be launched from command line, so those Apache env vars have not effect work, even $PHP_SELF don't work. Can anybody has a solution for this? Thanks in advance for