Is it possible to use Ajax to call a PHP script that uses the exec() command to run some server-side command and then wait for the exec() command to finish processing before sending the result back to the Ajax/JavaScript function?
I'm using this in connection with ffmpeg to create video files.
The trouble I'm having is that the exec command for ffmpeg could take up to 15-30 seconds to finish. I've tried using a synchronous ajax call but it's not working correctly... so I guess I need to know if it's even possible and then maybe get an example.
Thanks,
$marc
Start Free Trial