Getting the script path of a commandline script

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Getting the script path of a commandline script
Groups: php.general 
Request: Send a blank email to php-general+get-126150@lists.php.net to get a copy of this message
Anyone know how to get the script path (not the current working directory, but the actual path of the executing script) of a commandline script? I've dug through the docs and can't find this anywhere. None of the typical $_SERVER variables return the script path (although several of them return the filename, hooray for redundancy). The docs say several times that getcwd() will NOT return the path of the executing script, but they don't mention how to get it. Help. -- Ryan Grove ryan@wonko.com http://wonko.com/

« previous php.general (#126150) next »