摘要: escapeshellarg()的说明是这里 原来以为这个函数可以用来把一整条shell命令转义像这样: $sh = 'mysql -uroot -proot -Dtest < /var/www/test.com/sql/user (1).sql'; shell_exec(escapeshellarg($sh)); 一试就出错了。。。。 仔细看了下文档才知道应该用来转义部分参数 ... 阅读全文
posted @ 2016-03-22 21:57 物理挂了 阅读(3174) 评论(0) 推荐(0) 编辑