Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I return a wait page

Status
Not open for further replies.

Brad59

Technical User
May 10, 2000
1
US
Using PHP, how can I return a page saying "Working on your query" or something while a long process (db search) is running.  Not too hard in PERL (fork).
 
There are a number of possibilities, but the easiest is like this:<br><br>-- snip --<br><FONT FACE=monospace><br>&lt;HTML&gt;<br>&lt;TITLE&gt;Test&lt;/TITLE&gt;<br>&lt;BODY&gt;<br>Please Wait - processing query...<br>&lt;?php<br><br>flush()<br><br>//Do the long proccess<br><br>//Display the results<br>?&gt;<br>&lt;/BODY&gt;<br>&lt;/HTML&gt;<br></font><br>-- snip --<br><br>The important bit is the <FONT FACE=monospace>flush()</font> function. Hope this helps<br> <p>Richard<br><a href=mailto:richard.allsebrook@easysoft.com>richard.allsebrook@easysoft.com</a><br><a href= Homepage</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top