July 11th, 2000, 10:20 AM
Can someone take a look at my search program at http://www.screamingv.com/mp3-files/gs.php? The script searches for mp3 files for the length of time specified in the timeout box.
THE PROBLEM: When somebody does a search with a 60 second timeout, they sit and look at a blank screen for a minute before they can browse the results. Everything is held until the search has timed out.
THE SOLUTION: Use flush( ) (or anything that does the job) to display each result as it is found. If someone searched with a 60 second timeout, they would immediately see a few results and the page would just keep growing for the next minute.
I stuck my own flushes in all over the place but nothing seemed to work. You can see the source code at http://www.screamingv.com/mp3-files/gs.php.txt.
Can anyone help?
Thanks! Ryan McKillen
[This message has been edited by scream (edited July 11, 2000).]
July 11th, 2000, 02:28 PM
You are outputting the results in a table. The browser is receiving the data as you flush, but isn't displaying it because the table isn't complete. Netscape will NEVER display a table until it gets a </table>. IE MIGHT display if you specify table and td widths, but then again it might not. Best bet is to do away with the table.
July 11th, 2000, 03:26 PM
That makes a lot of sense. Thank you!