i want to execute external programs via PHP, and i have found the system() instruction.
The problem is that i always get the same return value, althought i have tried different calls.
The code i use is:
Expand|Select|Wrap|Line Numbers
- system("ls -l" ,$res);
- print_r("Return Value: $res<br/>");
1) the file is not found -> "ls" has to be found for sure
2) you d'ont have permission. I have look, and theorically i have permission to execute it
i have a PHP 5 working over apache in a fedora system
any ideas?
thanks
Aitor