You are here: Re: Loading a PHP file/code via Javascript. « PHP Programming Language « IT news, forums, messages
Re: Loading a PHP file/code via Javascript.

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация