Are you sure it's not running? Maybe put something in there that writes to a file?
Edit: And what I mean by that is are you sure the script is not running the shell script? The shell script doesn't seem like it's giving any feedback on whether it's running or not. Maybe return a string saying "Done" from the shell script, and echo that from the return value of exec()? That way you can be more sure the script is actually running.
You probably just need to make 'nobody' a member of the 'sound' group or whatever it's called on your distro. See what the ownership/permissions are on /dev/dsp
markl999 wrote:You probably just need to make 'nobody' a member of the 'sound' group or whatever it's called on your distro. See what the ownership/permissions are on /dev/dsp
Thanks! That did it
Although not as expected..
I changed the exec("/var/www/html/enter.sh");
into
exec('soundwrapper play /var/www/html/enter.wav");