php执行shell脚本问题 本地执行shell脚本的时候能成功,但是使用php来就无法执行了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 权限问题。chmod 0777 a.txt 看看 $ ll a.txt$ ll b.txt试试 你上面的echo应该不是linux命令的echo应该是php的echo $results = `cat a.txt`;或者$results = shell_exec('cat a.txt'); echo $results试试 问题已经搞定1.路径问题,确定好工作目录2.权限问题,daemon和用户之间的关系要搞清楚。希望能让大家借鉴 a.sh #!/bin/shecho 'hello world'>1.txt/usr/bin/unoconv -f pdf /mnt/www/test/test.txtindex.php<?phpexec("/usr/bin/a.sh",$status);为啥不生成pdf文件。 大家看看我这句话那里出错了? $_SERVER['HTTP_REFERER'] 截取问题 请教 PHPNuke 的中文乱码问题 php怎么访问目录会越界? 连表查询的问题!! 关于返回? php安装问题 新手问题! mysql的奇怪问题?????? 请问在php中写js是如何写的?? 读取xml数据之后smarty的模板应该怎么写 preg_replace_callback Allowed memory error
chmod 0777 a.txt 看看
$ ll b.txt
试试
$results = `cat a.txt`;或者$results = shell_exec('cat a.txt');
echo $results试试
1.路径问题,确定好工作目录
2.权限问题,daemon和用户之间的关系要搞清楚。
希望能让大家借鉴
#!/bin/shecho 'hello world'>1.txt
/usr/bin/unoconv -f pdf /mnt/www/test/test.txtindex.php
<?phpexec("/usr/bin/a.sh",$status);
为啥不生成pdf文件。