Re: grab the complete commandline used ...
| From: | Robert Cummings | Date: | Thu, 28 Aug 2008 16:07:31 +0000 |
| Subject: | Re: grab the complete commandline used ... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278905@lists.php.net to get a copy of this message | ||
On Thu, 2008-08-28 at 10:22 -0500, Micah Gersten wrote:
> Does this work?
> $command = implode(' ', $argv);
Only do it that way if it's for a log of general output. If you're going
to punt any of those parts back to the OS in another command you'll need
to properly escape them.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP