pdf2swf如何动态的转换
时间:2021-07-01 10:21:17
帮助过:28人阅读
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;
?>
这里的$name最后输是最后是加后缀名(.pdf) 但是swf文件的动态怎么写?
求各位大侠帮忙!!!!!!!!
------解决方案--------------------
注意空格
$command = "E:/swf/pdf2swf.exe -t $name -o $name.swf -s flashversion=9 ";