Re: File uploads - progress reporting gets stuck short of 100%
- From: John Geddes <john@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 09 May 2008 18:00:20 +0100
Jerry Stuckle wrote:
You can access the session and get some quick information - you just need to close the session before anyone else can access the info. You just can't reopen it.
That's really helpful. I've just tried a dummy application with a user page with two iframes - one that reloads a timer every second (to simulate a progress-checking page), and the other frame used for loading a page with a sleep(5) statement in it (to simulate a background processing page). If each page closes session writing, then the timer operates seamlessly. If I don't clear the session writing on the processing page, the timer stops when the "processing" page loads, and waits for the sleep to finish before resuming. Just as you suggest.
But the "processing" page on my real application is doggedly sticking to single-thread operation even after a session_write_close() statement. What other conditions can force php to run in single-thread mode? Is there any function to test for single-thread operation?
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
- Re: 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: PHP Classifieds
- 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
|