Arcady Genkin <[EMAIL PROTECTED]> wrote:
> o If the first argument is an array, we assume that:
>  - the first element of the array is the command to be executed,
>  - and all other elements are command-line parameters
>  - if PHP is in safe mode, quote each parameter separately

wouldn't it be better to just use execvp() and make escpaing each
parameter not be an issue? (that also makes it easier to pass arguments
with spaces, etc, and i think it would be useful even outside of safe
mode.)

that doesn't solve the 2>&1 problem, but perhaps that could be handled
as a special case. using /bin/sh to run things from exec() and system()
just always gives me the willies. :)

jim

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to