Home >Backend Development >PHP Tutorial > pdf2swf如何动态的转换

pdf2swf如何动态的转换

WBOY
WBOYOriginal
2016-06-13 13:48:331061browse

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 ";
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn