I try to execute this command with the PHP command exec:
exec ("gphoto2 --capture-image-and-download --filename ".$path, $output, $returnVal);
I use a valid filename and when I execute the command with the parameters of the variables in bash, it works. However, with php it doesn't. I don't get a reply of the exec command.
I'm using raspbian with lighty and the php5 module. That works with other samples fine.
I tryed shell_exec without success, too.
Can someone help me?