pdf2swf怎么动态的转换?
@$command= "E:/swf/pdf2swf.exe -t a.pdf -o a.swf -s flashversion=9 ";
@system($command);转换静态的一句比较简单
但是如何动态的转换?
<?php
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;
?>
<form enctype="multipart/form-data" method="post" name=text"upform">
<input name="upfile" type="file">
<input name="submit" type="submit">
</form>
这里的$name最后输是最后是加后缀名(.pdf) 但是swf文件的动态怎么写?
求各位大侠帮忙!!!!!!!!
[解决办法]
注意空格
$command = "E:/swf/pdf2swf.exe -t $name -o $name.swf -s flashversion=9 ";