Des this seem right guys?
<?php
$cmd=exec("chmod 666 *.php -r");
echo $cmd . "<br>";
?>
I evern tried:
<?php
$output = shell_exec('chmod 666 *.php -r');
echo "<pre>$output</pre>";
?>
I also tried:
<?php
echo '<pre>';
// Outputs all the result of shellcommand "chmod", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$last_line = system('chmod 666 *.php -r', $retval);
// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>
and it resulted in :
<pre></pre>
<pre>
</pre>
<hr />Last line of the output:
<hr />Return value: 1