php exec
Posted by: Blaubaer
Posted on: 2009-01-12 16:48:00
Hi!
I'm having trouble executing a shell script from php. The strange thing is that I'm not getting any errors, just nothing.
So for testing, I created the following php file:
<?php
$output = shell_exec('ls -ls');
echo "<pre>$output</pre>";
?>
If I open that page in my browser I only get a 404 error (probably because the php interpreter doesn't output anything).
system and exec won't work either. Is program execution from within php disabled?