Re: File uploads - progress reporting gets stuck short of 100%



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
.



Relevant Pages

  • Re: form to email document
    ... >> append the Session ID for that user Session to the file name. ... >> name uploaded.This can come from a simple text file or a database. ... >>> I was hoping for something like the procedure used to upload a form, ...
    (microsoft.public.frontpage.programming)
  • Re: Homegrown synchronization
    ... if you can count on the upload completing each time the user ... counts for that session. ... server, a copy of that update file is put into an archive folder. ... I'm not suggesting that at all. ...
    (microsoft.public.access.replication)
  • Re: I found an even easier way to crash CMUCL 19c/19f on FreeBSD 7.1
    ... I seem to remember you were using an UNIX shell account. ... new e-mail to your own computer at the start of the session, ... The version of Emacs here is horribly broken. ... Hmm, when I upload new versions of my source files, I keep around ...
    (comp.lang.lisp)
  • Re: I found an even easier way to crash CMUCL 19c/19f on FreeBSD 7.1
    ... I seem to remember you were using an UNIX shell account. ... new e-mail to your own computer at the start of the session, ... The version of Emacs here is horribly broken. ... Hmm, when I upload new versions of my source files, I keep around ...
    (comp.lang.lisp)
  • Re: form to email document
    ... > append the Session ID for that user Session to the file name. ... > name uploaded.This can come from a simple text file or a database. ... >> I was hoping for something like the procedure used to upload a form, ...
    (microsoft.public.frontpage.programming)