resource proc_open ( string $cmd , array $descriptorspec , array &$pipes [, string $cwd [, array $env [, array$other_options ]]] )
windows环境下,如果cmd为完整路径,使用“”包括起来,且后面的参数也包含有“”括起来的参数,则会显示解析命令失败。如$cmd = "C:\Program Files\Scutech\Scutech Common Component\scutech-mysql5.1\bin\mysqldump" --protocol=tcp --port=3333 --user=root --add-drop-database --add-drop-table --single-transaction --hex-blob --quick --max_allowed_packet=4G --routines --verbose "test test"则出现提示执行命令出错不存在
本文出自 “bao菜笔记” 博客,请务必保留此出处http://yebaoshan.blog.51cto.com/9954062/1616715
原文地址:http://yebaoshan.blog.51cto.com/9954062/1616715