Home >Backend Development >PHP Tutorial >怎么不显示shell的返回信息

怎么不显示shell的返回信息

WBOY
WBOYOriginal
2016-06-13 10:09:16983browse

如何不显示shell的返回信息
用PHP写的脚本:
shell_exec('/usr/local/memcached/bin/memcached -u root'); // 启动memcached 
搁在终端下直接执行该命令或者解析执行这个PHP文件,进程就都一直挂着,如果关闭终端就会杀死这个memcached进程(它不像Apache那样启动后也就完事了)。
有什么办法,PHP脚本发出命令后再不去管,或者是让memcached进程不要挂在终端上,这让强迫症患者很难受

------解决方案--------------------
@shell_exec('/usr/local/memcached/bin/memcached -u root');
@:屏蔽错误或警告的显示!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn