|
You could just print the "please wait" message, then call the system and it will run it, then continue with the rest of the program where you print the code to redirect the page. Look up the difference between system() and exec() to see how it handles executing external programs.
If you are waiting that long though you may need to do something else. I know there are some built in timeouts for both php and apache (or whatever webserver) that can terminate your script if it takes too long.
I'm thinkin you could have an intermediate page that refreshes itself every few seconds and checks if the external program is done running. If it is still running, it will still print the wait message, otherwise go to the finished page.
|