You are here: Re: Refresh Page with PHP « All PHP « IT news, forums, messages
Re: Refresh Page with PHP

Posted by Martin Jay on 06/06/06 23:46

In message <1149628656.373049.209990@u72g2000cwu.googlegroups.com>, Dan
<danjel.grosar@gmail.com> writes

>I have some For Loops in PHP and echo call to write out the loop
>progress.
>
>How do I refresh the page from the loop to see the progress?

You can put this in the <head></head> section of the HTML to refresh a
page:

<meta http-equiv="refresh" content="10">

Where 'content' is the number of seconds before the next refresh.

But, of course, every time the page is refreshed it would start your PHP
scrip again. You seem to imply that the script would already be
running. If that's the case perhaps you could periodically write the
results to a script and use the web browser to display its contents?
--
Martin Jay
Phone/SMS: +44 7740 191877
Fax: +44 870 915 2124

 

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

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