Re: File uploads - progress reporting gets stuck short of 100%
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Fri, 09 May 2008 13:34:31 -0400
John Geddes wrote:
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
Nope, sounds like someone still has the session open. You session is closed in all other pages, correct?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- 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
- Re: File uploads - progress reporting gets stuck short of 100%
- From: John Geddes
- 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: Php Ajax
- Previous by thread: Re: File uploads - progress reporting gets stuck short of 100%
- Next by thread: TYPO3 Developer wanted
- Index(es):
Relevant Pages
|