How to obtain the script's path?

From: Date: Tue, 12 Feb 2002 21:44:18 +0000
Subject: How to obtain the script's path?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-84469@lists.php.net to get a copy of this message
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 any answers! Regards, Alex

« previous php.general (#84469) next »