I have a file on a shared webhost in my public_html directory named test.sh. It has execute permission, and indeed if I log into my account via telnet, I can execute it just fine. BUT, I'd like to write a PHP script to execute that shell script, so I write:
<? exec("test.sh"); ?> has no effect.
<? exec("/home/user/public_html/test.sh");?> has no effect.
so, to try to get some feedback I tried:
<?$astr=system("/home/user/public_html/test.sh",$aInt);?> $aInt gets set to 127, while $astr is empty.
As always, thanx for your help.