Re: [PHP-DB] Flushing PHP output
> in my experience (IE5?) if there is data being "added" to the page, then the > browser will display what it can, and keep adding to it until the stream > breaks or it finishes. Only if the buffer has been flushed! > one thing to note is that you wouldn't be able to do > any tables because they don't display until the code all the way to the end > of the table is available. tables are fine for buffered output. You just need to send a complete table in each flushed output. In the original posters application he could use a seperate table for each db call, then flush and they will display fine. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] Flushing PHP output
> I want to have a web page access a number of DB's, this will start with one > but on a monthly basis increment by one. So within 12 months their will be > 12 DB's. The web page will access each one in turn starting with the newest > DB and search through this for certain text. After a query has ended it > moves on to the next and so on. Ok well just call flush(); to send the current buffer to the browser. Of course it depends on how quickly each query runs if this has any measurable effect. I use flush quite successfully on a multiple whois lookup page. On each flush it sends a new javascript command to update the header telling the user what domain it is checking at the moment. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DB] Flushing PHP output
if you just echo() the results/messages as you come across them, the page should "incrementally" load. in my experience (IE5?) if there is data being "added" to the page, then the browser will display what it can, and keep adding to it until the stream breaks or it finishes. one thing to note is that you wouldn't be able to do any tables because they don't display until the code all the way to the end of the table is available. HTH /beau // -Original Message- // From: Neil Lathwood [mailto:[EMAIL PROTECTED]] // Sent: Friday, 23 November 2001 1:59 AM // To: [EMAIL PROTECTED] // Subject: [PHP-DB] Flushing PHP output // // // Hi Folks, // // What I am trying to accomplish is: // // I want to have a web page access a number of DB's, this will // start with one // but on a monthly basis increment by one. So within 12 months // their will be // 12 DB's. The web page will access each one in turn starting // with the newest // DB and search through this for certain text. After a query // has ended it // moves on to the next and so on. // // I want the PHP page to output html in the lines of: // // Scanning DB mm/ // // No results / Results depending on what it finds. // // // // Scanning DB mm/ // // Etc. // // I hope this explains what I am trying to do. Any pointers // would be great. // // Thanks in advance // // Neil // // // -- // PHP Database Mailing List (http://www.php.net/) // To unsubscribe, e-mail: [EMAIL PROTECTED] // For additional commands, e-mail: [EMAIL PROTECTED] // To contact the list administrators, e-mail: // [EMAIL PROTECTED] // -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]