C++ compiled OpenCV wont exec by PHP:
Posted: 08. August 2014 11:27
When i exec some file which just returns something with cout or write to a .txt file it works but when i try to exec the OpenCV compiled file it just don't work with no errors. I am doing it by this script:
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:
My Linux distribution is Xubuntu 14.04, XAMPP version is 1.8.3-4
- 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