<?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 '????';
?>
希望能解决 小弟不胜感激!
//外部程序包装
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 '????';
?>
希望能解决 小弟不胜感激!
当外部命令处于 NTFS 分区时,匿名用户一般都不具备“执行”权限system 函数在外部命令未执行外以前,不向 php 返回任何信息。
所以,若外部命令需要接受用户操作时,将永远的等待(比如你的 exploer.exe)