Offline processing...



Hello all,

The web site that I am building takes various pieces of information
from the user via forms and generates a number of individual files
which are then stored on my server for the user to collect.

While this works on my test machines, it can sometimes take up to 15
seconds for the PHP code to complete and generate the files. While this
is happening, the browser appears hung.

I'm concerned that when the system goes live, these pauses may increase
and cause issues for my users.

How can I take this processing offline - so the user can click on to
other pages in the browser while the PHP code from the 'processing
page' is executing in the background?

Is this possible?

Is PHP able to handle multiple users creating files in this way well? I
realise that coding methods/techniques will affect things, but in
general how robust is PHP in this type of scenario?

Sam.

.



Relevant Pages

  • Re: Anti Leech php script
    ... By the way how open the link in a browser if all is ok? ... I mean the user click a link, a part of PHP code checks on the server ... maybe you want to try something like the HTML <iframe> tag? ...
    (comp.lang.php)
  • Re: [PHP] Deny processing of non included files
    ... One simple way to be sure it's not access directly by the browser is ... Then it can't be surfed to AT ALL, much less executed as PHP code. ... files generates a hash, stores it in the db for the length of the ... For that matter, your script should error out gracefully if, in the ...
    (php.general)
  • Re: Using GD Library Functions
    ... > Randell D. ... Other PHP code I've run has worked fine in the body. ... BTW I couldn't get your GD support check code to work. ... this might be the reason as to why you are getting mixed results from browser to browser... ...
    (comp.lang.php)
  • Re: Anti Leech php script
    ... But I think with a help of James I can already do something ... By the way how open the link in a browser if all is ok? ... I mean the user click a link, a part of PHP code checks on the server ...
    (comp.lang.php)
  • Returning a file to browser via php
    ... I need to be able to "send, or stream" a file to the client browser ... This is the scenario. ... need to have my PHP code return a document -a Word document file, ... can wrap security code around this process. ...
    (comp.lang.php)