I have a PHP script that calls exec() to execute a c++ program but when I call it from the browser it doesn't work. Instead if I use command-line "php5 ./mypage.php" it works.
This is my PHP page:
<?php
exec("./praat ./FeaturesExtraction.praat ./emotion.wav ./output/");
?>
Praat is a program to analyse speech. This program take as input a script FeaturesExtraction.praat and a wav emotion.wav and write the output in the directory "output" (that has all the permission).
I've tested two Web Servers, Apache and Lighttpd, but I've no results.
Someone can help me? How can I solve this problem? Or how can I wrap praat to use it from web?
Thanks.