Re: [PHP] grab the complete commandline used ...
- From: phpmail@xxxxxxxxxxxxxxxxxxxxxxx ("David Otton")
- Date: Thu, 28 Aug 2008 19:43:25 +0100
2008/8/28 Jochem Maas <jochem@xxxxxxxxxxxxx>:
anyone know if it's possible to grab the entire commandline
that was used to start up a php script on the CLI, an example
of what I'm looking to grab from within the script (test.php in
this example):
"php -qC -ddisplay_errors=1 ./test.php -o -d -e jochem@xxxxxxxxxxxxx -f
./last.log | grep Exception"
of course I know what the script name and arguments are but I'd rather like
the
whole enchilada (php binary and it's args + the pipe to grep).
possible? bad idea? down boy?
Not possible, I'm afraid. Certainly not portably. The command line is
manipulated quite heavily before your script gets run. (eg shell
wildcard expansions).
A quick Google suggests that it is possible under VMS, but I doubt
that's much use to you.
--
http://www.otton.org/
.
- References:
- grab the complete commandline used ...
- From: Jochem Maas
- grab the complete commandline used ...
- Prev by Date: Re: [PHP] PHP IDE needed
- Next by Date: RE: [PHP] restricted file access
- Previous by thread: Re: [PHP] grab the complete commandline used ...
- Next by thread: Re: [PHP] grab the complete commandline used ...
- Index(es):
Relevant Pages
|