I have implemented a SAAS scenario with my Windows server: a user could upload a file in a website, then Fetch.exe
is an application coded in C#
hosted in the server, Fetch.exe
takes the uploaded file as an input, executes and generates an output to download for the user.
So in my php, I use exec
to wrap Fetch.exe
:
exec("Fetch.exe " . $inputFile . " > " . $outputFile)
Uploading and executing (ie, Fetch.exe
) may take more than several seconds, and I want to show the user that it is processing and everything is going fine.
I have found some threads that discuss how to show a progress bar for the uploading. Whereas, does anyone know what I could do to show the approximate progress of Fetch.exe
? Do I have to split it into smaller applications and use several exec
?