Re[2]: [PHP] PHP equivalent to Perl $0

From: Date: Thu, 01 Feb 2007 00:32:50 +0000
Subject: Re[2]: [PHP] PHP equivalent to Perl $0
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-248111@lists.php.net to get a copy of this message
Hi Richard, RL> And, frankly, why would you want to do that? It only sows confusion RL> in ps output. :-) I happen to agree with you. Why would you want to do it. The reason it is being done in this application is to keep a specification for he application happy. When the php program is executing and you do a ps you see /usr/local/bin/php -q listener.php which is perfectly fine by me :-) What happens with the Perl application beacuse of stuffing the string back into the $0 is that you see Listener is accepting connections on Port 15556 It seems to me that whoever wrote the specification had this thing about ps showing a nice string instead of the program name actually running. Of course I know that this is what ps is supposed to do and Perl allows you to tell nice lies to ps :-) Regards, Richard Luckhurst Product Development Exodus Systems - Sydney, Australia. rluckhurst@resmaster.com

« previous php.general (#248111) next »