我正在做一个curl请求,它在这样的控制台中显示html输出
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/domain/public_html/wp-content/themes/explicit/functions/ajax.php:87) in <b>/home/domain/public_html/wp-content/themes/explicit/functions/ajax.php</b> on line <b>149</b><br />......
等等
我需要在运行CURL请求时隐藏这些输出,尝试像这样运行CURL
curl -s 'http://example.com'
但是它仍然显示输出,如何隐藏输出?
谢谢
>/dev/null
。在mywiki.wooledge.org/FileDescriptor?highlight=%28FD%29