开发者

running external program via PHP on Linux

开发者 https://www.devze.com 2023-03-06 10:29 出处:网络
I need an expert\'s help. I need to execute a program via php script. It works well on Windows, but not on Linux.

I need an expert's help. I need to execute a program via php script. It works well on Windows, but not on Linux. The command is also OK in shell but won't run via php it can't run. Also php can run the Linux commands, but I need to run another program pdf2swf. please help me to solve this.

for ($i = 0; $i <= $_REQUEST["n_o_p"]; $i++) { 
  $oExec = exec($_SESSION['path']."pdf2swf -p ".$开发者_如何学编程i."-".$i." ".$_SESSION['path']."upload/".$_SESSION['f_n']." -o ".$_SESSION['path'].$tmp_dir."/data/pages/document".$i.".swf");
}


<?php shell_exec('command'); ?>
0

精彩评论

暂无评论...
验证码 换一张
取 消