当前位置:编程学习 > php >>

php无法调用exe

帮忙看下,以下代码是否有问题 <?php //外部程序包装 class MagicEncoder { //外部程序调用 public function MagicProcess() { //转换器参数 //$command = "D:\\MagicEncoder\\magicencoder.exe -open d:\\magic.docx -mgctime 58 -mgc D:\\magic.swf -imgcan -imgtime 18 -img 480,680,d:\\image.gif -href http://maigcplayer.gicp.net/test/message.php -exit 2"; //$command = "D:\\MagicEncoder\\magicencoder.exe"; //system("D:\\MagicEncoder\\magicencoder.exe", $info); //system("c://windows/exploer.exe", 1); //system("c://windows/exploer.exe", $info); system("c://windows/exploer.exe"); echo $info; exec($command);//转换器启动 } } $magic = new MagicEncoder(); $magic->MagicProcess(); echo '????'; ?>
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,