目前我的目标是使用PHP exec()的输出,但是得到了空值。我正在使用firephp(firebug扩展)进行记录,但无法弄清为什么它是空的。
完整代码在这里:https://github.com/MattMcFarland/ninja-forms-uploads-custom/blob/dev/uploads-custom.php 表单在这里:http://www.hvac-hacks.com/?page_id=1383&preview=true&form_id=96
完整代码在这里:https://github.com/MattMcFarland/ninja-forms-uploads-custom/blob/dev/uploads-custom.php 表单在这里:http://www.hvac-hacks.com/?page_id=1383&preview=true&form_id=96
exec('mogrify -auto-orient -verbose -format jpg '.$dir."/".$user_file_name,$ouput);
fb($output);
curl_exec('mogrify -auto-orient -verbose -format jpg '.$dir."/".$user_file_name,$output);
fb($output);
$output = shell_exec('mogrify -auto-orient -verbose -format jpg '.$dir."/".$user_file_name);
fb($output);
目前,对于我使用的每种exec方法,控制台都显示为空。真的不知道该怎么做,完全不知所措。
控制台确实也可以工作,因为它显示其他fb();
的内容。exec命令会显示一行带有数字3的空行,表示返回了3次空值。
有任何想法吗?