Re: File uploads - progress reporting gets stuck short of 100%
- From: John Geddes <john@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 08 May 2008 09:52:38 +0100
Jerry Stuckle wrote:
Are you using sessions? PHP will single thread access to the same session data.
Yes - I was. Removing the $_SESSION references from the upload page has solved the problem. Thanks so much, Jerry
But ... on my following page, which processes the uploaded image (including resampling to several different sizes) I had intended to use a $_SESSION variable to signal approximate "percentage done" back to the progress-checker, and thus to the user page. But this won't work because of the single-thread limit with S_SESSION.
Breaking up the page is possible, but it would be a shame - as I would have to recreate the PHP image object each time (as it stands, I can create the image once, then create several resampled copies).
Any ideas on how I can report part-progress from a PHP page without using a $_SESSION variable?
John Geddes
.
- Follow-Ups:
- Re: File uploads - progress reporting gets stuck short of 100%
- From: Jerry Stuckle
- Re: File uploads - progress reporting gets stuck short of 100%
- References:
- File uploads - progress reporting gets stuck short of 100%
- From: John Geddes
- Re: File uploads - progress reporting gets stuck short of 100%
- From: Jerry Stuckle
- File uploads - progress reporting gets stuck short of 100%
- Prev by Date: Re: File uploads - progress reporting gets stuck short of 100%
- Next by Date: Re: File uploads - progress reporting gets stuck short of 100%
- Previous by thread: Re: File uploads - progress reporting gets stuck short of 100%
- Next by thread: Re: File uploads - progress reporting gets stuck short of 100%
- Index(es):
Relevant Pages
|