Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将一个php页面连接到linux命令行程序ping。
我意识到有卫生问题。是否有可以处理所有事情的内置库或函数,还是我必须依赖正则表达式解析器?
你的意思是escapeshellcmd和escapeshellarg?
escapeshellcmd
escapeshellarg
你的意思是清理变量 http://php.net/filter_var吗?
好教程
http://www.phpro.org/tutorials/Filtering-Data-with-PHP.html