Re: using passthru or system() even and passing the $_FILES array

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

 



On Wed, Sep 28, 2011 at 10:52 AM, Jim Lucas <lists@xxxxxxxxx> wrote:
> On 9/28/2011 12:07 AM, Anton Heuschen wrote:
>> $command = '/usr/bin/php -f /var/www/details/Write.php '.$email.'
>> '.$actionDate.' '.$files.' >> php.log';
>> system($command,$return);
>
> At this point I would suggest that you echo $command before trying to execute it.
>
> I think you might find that you are trying to pass characters that the cli are
> miss interpreting.

OP: Look at http://us2.php.net/manual/en/function.escapeshellarg.php
and http://us2.php.net/manual/en/function.escapeshellcmd.php

-- 
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