Re: grab the complete commandline used ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does this work?
$command = implode(' ', $argv);

http://us2.php.net/manual/en/reserved.variables.argv.php


Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Jochem Maas wrote:
> hiya,
>
> 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?
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux