Re: PHP equivalent to Perl $0

From: Date: Thu, 01 Feb 2007 00:14:56 +0000
Subject: Re: PHP equivalent to Perl $0
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-248108@lists.php.net to get a copy of this message
Jay Blanchard wrote:
[snip] In Perl there is the predefined $0 which contains the name of the file containing the Perl script being executed. Is there an equivalent in PHP? [/snip] $_SERVER['PHP_SELF']
Or if you're using it from the command line, $argv[0] -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#248108) next »