CUTTHEMUSIC
asked on
Please wait while page processes
I have a page on my site that processes a bunch of jpeg's that range in size from 800kb - 4mb. I usually have anywhere from 20 to 100 jpegs to process. The script resizes each jpeg and adds appropriate data to a sql database using a stored procedure. The entire process for each jpeg takes 5-10 seconds. Currently if I have more then 20 jpegs then the script times out and while the page is executing I do not get any output. What is the best way to overcome this, is it as simple as adjusting the timeout property? Or is there a better way to do it. How can I display a message on the page that states "PLease wait while the page processes!" and then redirect the page to another when all the jpegs are done. Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
in your page, start a thread that does the work and return ...
then have the page automatically refresh, have the thread write to the database when it is complete.
then have the page automatically refresh, have the thread write to the database when it is complete.
ASKER