execute a linux script from PHP

A

Anonymous

Guest
Try change at this:
Code:
///////////////////////////////////////////////////////////
 if (!function_exists('imp_expand_fromaddress')) {
    function imp_expand_fromaddress ($imp) {
           $cmd = '/usr/local/bin/myscript ' . "'" . escapeShellCmd($imp['user']) . "'";
           $res=exec("$cmd");
           return ($res);
   }
}
or see how to do this smart peaple iwho read manual carefully:
http://www.php.net/manual/en/function.escapeshellarg.php
 
Back
Top