On the original script, wait for the action to finish and update the DB with the result.
For big files the time it takes to upload them will probably be higher than the script's max_execution_time. You could just use the set_time_limit() function but it's still probably not a good idea for web pages as the script would just "hang" there without any user feedback (output to the browser). This would probably be nicer: use set_time_limit() so the script doesn't die.
Store the file name in a temporary location (DB, session, etc) and get a unique ID for it Output a page with some AJAX code to (repeatedly) query a second script for the file's status (FINISHED, FAILED, UNDEFINED? ) On the original script, wait for the action to finish and update the DB with the result.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.