Heim >Backend-Entwicklung >PHP-Tutorial >pdf2swf如何动态的转换
pdf2swf怎么动态的转换?
@$command= "E:/swf/pdf2swf.exe -t a.pdf -o a.swf -s flashversion=9 ";
@system($command);转换静态的一句比较简单
但是如何动态的转换?
if (@is_uploaded_file($_FILES['upfile']['tmp_name'])){
$upfile=$_FILES["upfile"];
}
@$name = $upfile["name"];
@$type = $upfile["type"];
@$size = $upfile["size"];
@$tmp_name = $upfile["tmp_name"];
if (move_uploaded_file($tmp_name,$name)) {
echo "上传成功";
@$command= "E:/swf/pdf2swf.exe -t" .$name. "-o" .$name.swf. "-s flashversion=9 ";
@system($command);
}
if(system($command)){
echo "ture";
}else{
echo "cuo";
}
echo $name;
?>