PDA

View Full Version : shell_exec()



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

timROGERS
13-08-2007, 11:03 AM
Try:



<?php
echo(shell_exec("my command"));
?>

Want to hide these adverts? Register an account for free!