I’ve been trying to run this php code on CentOS:
<?php
$command = "diff file1 file2 > file3";
exec($command, $output, $error_code);
if ($error_code != 0) {
echo "Error: $error_code";
}
?>
And it always echoes “Error: 1”. Error 1 is “Operation not permitted” http://www.pegasoft.ca/resources/boblap/99_b.html. It looks like apache has no permissions to do certain things, right? How can I fix that?
Oh >____<
I had this line at the end of my script:
The file was created and then deleted… That’s why I could never see it. Sorry.