我有以下PHP代码:
exec('curl -X POST http://mysite.com', $output =array());
Run Code Online (Sandbox Code Playgroud)
我的http://mysite.com返回字符串未显示在shell上,但显示以下字符串:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 3 0 3 0 0 19 0 --:--:-- --:--:-- --:--:-- 0
Run Code Online (Sandbox Code Playgroud)
我不希望在shell上显示任何内容.如何在使用exec()命令时禁用对shell的引用.还有其他命令吗?