Get filename in php command line

From: Date: Tue, 17 Jul 2001 14:48:38 +0000
Subject: Get filename in php command line
Groups: php.general 
Request: Send a blank email to php-general+get-58271@lists.php.net to get a copy of this message
Hello, How do I get the filename or script name if I run it in php comamnd line? For example, if I run this bash$ php test.php I want to get something inside test.php that tells me the filename is test.php, but *without* the actual path. Thanks Reuben D. Budiardja

« previous php.general (#58271) next »