- Code: Select all
exec('./test.comp',$output,$ds);
print_r($output);
In the same folder must appear a filtered.jpg file and $output must return 'dasdas' but $output is empty and there is not appear filtered.jpg. When i execute the file by terminal it works ok. All files have full rights:
- Code: Select all
-rwxrwxrwx 1 user user 5567011 юли 31 18:16 5.jpg
-rwxrwxr-x 1 user user 31831 авг 8 11:56 test.comp
-rwxrwxrwx 1 user user 444 авг 8 12:10 test.php
My Linux distribution is Xubuntu 14.04, XAMPP version is 1.8.3-4