Using set_time_limit(0); in the processing script will make it never time out.
As far as memory, if you clear the variables used in each iteration, you shouldn't be using more memory each time.
Finally, you can you have many options for the update:
1. Print a status and <br>, then call flush(); This works on Apache and will send it immediately to the client.
2. Use the AJAX mentality and output _javascript_ each time the status changes that will change the status DIV tag.
3. Use HTTP multipart/x-mixed-replace to update the entire browser page.
1. Print a status and <br>, then call flush(); This works on Apache and will send it immediately to the client.
2. Use the AJAX mentality and output _javascript_ each time the status changes that will change the status DIV tag.
3. Use HTTP multipart/x-mixed-replace to update the entire browser page.
4. Maybe some other way... :-)
HTH,
Eric
On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I wanted to get some advice on the best logic to process images via a
website. Various hosts and their parameters mean that anywhere from
only 3 to above 10 images can be processed before either the script
times out of the memory runs out. So, I am wanting the processing page
to 1. show progress and 2. redirect after so many iterations to renew
the page and processing.
My initial thought is that the action will start rendering first and
then I can echo some progress in the action. At the iteration limit,
it will call a redirect to the same page that will continue on.
Is this the best approach? Is there a more elegant or more CakePHP
approach?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
- Re: Image Processing Eric C Blount
- Re: Image Processing Olivier Percebois-Garve
- Re: Image Processing [EMAIL PROTECTED]
