怎么样才能用php函数system(),exec()运行linux命令? system($uadd , $return);
我运行以后没有结果!php.ini 中的设置: safe_mode = off echo shell_exec("id -a"); 的结果为下
uid=48(apache) gid=48(apache) groups=48(apache) context=root:system_r:httpd_sys_script_t
我运行以后没有结果!php.ini 中的设置: safe_mode = off echo shell_exec("id -a"); 的结果为下
uid=48(apache) gid=48(apache) groups=48(apache) context=root:system_r:httpd_sys_script_t
exec('ps aux|grep mysql',$a,$b);
print_r($a);
print_r($b);
// $a/$b是返回值吧
?>
我运行以后没有结果! echo $return;
$do=`cat 123.txt|grep '12'`;
?>