Robbie
13-08-2007, 10:21 AM
Right,
I'm trying to automate a few things I do in shell in PHP. I do this:
<?php
$output = shell_exec("my command");
echo $output;
?>
It doesnt echo anything, the command is fine because it works when I do it in shell, and PHP isn't in safemode, and shell_exec isnt disabled, cuz castcontrol is installed and works.
Any help?
Thanks
I'm trying to automate a few things I do in shell in PHP. I do this:
<?php
$output = shell_exec("my command");
echo $output;
?>
It doesnt echo anything, the command is fine because it works when I do it in shell, and PHP isn't in safemode, and shell_exec isnt disabled, cuz castcontrol is installed and works.
Any help?
Thanks