|
Posted by Simon on 10/17/37 11:41
>
> I've done something similar to this myself :)
>
> I found the best way to do it is to have your lengthy PHP script running
> in a hidden iframe, occasionally spitting out chunks of javascript (in
> complete <script> tags), and flushing the output after each tag is
> written. The javascript can update a textual display, or a progress bar
> or whatever, on the document holding the iframe. It's really simple to
> use, and very effective.
>
> dave
Hum, would you have a small example I could try?
'cause I am not sure I follow, if the php times-out after 30 seconds, (the
default), then there is nothing it can do really.
I need to divide the work in chunks of less that 30 seconds and somehow get
the JavaScript to call each 'chunck' one at a time.
So I would need JavaScript to open a php script, wait for the output and
handle the output.
Is it not possible to call another file on the server JavaScript and echo
the output?
I hope my explanation is clear.
Simon
Navigation:
[Reply to this message]
|