php exec: does not return output

前端 未结 10 1071
有刺的猬
有刺的猬 2020-12-01 17:20

I have this problem: On a ISS web server, windows 7 x64 professional, zend server installed. Running this command under php:

exec(\'dir\',$output, $err);
         


        
10条回答
  •  既然无缘
    2020-12-01 17:55

    Try this:

    shell_exec('dir 2>&1');
    

    It works fine on Windows 8.1 64bits with UAC enabled.

提交回复
热议问题