Hi:
I am having problems calling a shell script from a php page. Eventually it will call a macrodef, but for the moment I can't even get the most basic of scripts to be called, using exec() or system(), `` etc.
ie. a simple php script:
<?
$testvar = exec("sh testxml2.sh");
echo $testvar;
?>
and most basic of sh scripts:
mv test.xml test2.xml
echo "file renamed"
I can call it directly from the command line, and it works fine by using php executable on the cmd line too. It just refuses to execute via http.
In appreciation of your help .. a flummoxed newbie!