[support] passing vars
Ivan Sergio Borgonovo
mail at webthatworks.it
Sun Jun 28 08:58:31 UTC 2009
On Sat, 27 Jun 2009 17:41:07 -0700
aurfalien at gmail.com wrote:
> Hi,
>
> Please excuse this seemingly retarded mail.
>
> While fun, PHP is more then 4 handfuls and I only have 2.
>
> An example php script;
>
> $username = foo;
> exec('/root/script.sh'.($username));
exec('/root/script.sh '.escapeshellarg($username));
or
exec(escapeshellcmd('/root/script.sh '.$username));
--
Ivan Sergio Borgonovo
http://www.webthatworks.it
More information about the support
mailing list