PHP equivalent to Perl $0

From: Date: Wed, 31 Jan 2007 23:59:47 +0000
Subject: PHP equivalent to Perl $0
Groups: php.general 
Request: Send a blank email to php-general+get-248105@lists.php.net to get a copy of this message
Hi 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? I am working on converting a Listener script from Perl to PHP and at one point when the script forks it has a line $0 = "Listener is accepting connections on Port $port"; When this Perl script is running and I do a ps I see a process ID with the program being Listener is accepting connections on Port $port instead of the actual name of the Perl script. Is such a thing possible in PHP? If so how? I have been Google searching for a while and can not see one way or the other if it is possible. Regards, Richard Luckhurst Product Development Exodus Systems - Sydney, Australia.

« previous php.general (#248105) next »