Code: Select all
<?php
$pwdOutput = shell_exec("pwd");
$sOutput = shell_exec("convert ../images/team//24antilame.gif -thumbnail 60x40 ../images/team//thumbs/24antilame.gif");
echo "PWD: " . $pwdOutput . "<br />";
echo "Out: " . $sOutput;
die();
?>Code: Select all
Pwd: /home/sites/site45/web/control
Out:So I'm thinking "maybe I messed up the syntax of the call..", but no.. when I cd to what pwd prints out, and then paste the exact call I'm sending to shell_exec, it works.
Any ideas? This is so confusing..