View Single Post
Old Jun 1st, 2006, 3:13 PM   #2
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 219
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
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.
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote