Re: Determining the exact location of the CLI executing the current script?

From: Date: Mon, 24 Aug 2009 14:52:10 +0000
Subject: Re: Determining the exact location of the CLI executing the current script?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-29539@lists.php.net to get a copy of this message
2009/8/24 Richard Quadling <rquadling@googlemail.com>: > Hi. > > Seems like I'm missing something REALLY obvious. > > I can find the name of the script at runtime, the parameters, the > SAPI, etc. Loads of info. > > But I can't seem to find the exact name of the executable handing the script. > > Which seems a little odd. > > Unless I'm missing something. There is nothing built-in to get you this, but assuming you're on a unix platform you can use an evil combination of getmypid() and executing ps to get what you want. I'm sure similar is possible under Windows but either way it's not very clean. -Stuart -- http://stut.net/

« previous php.windows (#29539) next »