#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    456
    Rep Power
    15
    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).]
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    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.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    456
    Rep Power
    15
    That makes a lot of sense. Thank you!

Similar Threads

  1. Reset() not working properly???
    By Optimum in forum PHP Development
    Replies: 5
    Last Post: January 20th, 2004, 08:20 PM
  2. VB6 Data Reports, not working 'properly'
    By JaiDaScourge in forum Visual Basic Programming
    Replies: 0
    Last Post: January 6th, 2004, 08:42 PM
  3. Replies: 8
    Last Post: December 18th, 2003, 09:29 AM
  4. cant get select working properly
    By StealthElephant in forum MySQL Help
    Replies: 18
    Last Post: December 4th, 2003, 05:01 PM
  5. Order by not working properly
    By bungle_ in forum Database Management
    Replies: 2
    Last Post: December 4th, 2003, 04:48 PM

IMN logo majestic logo threadwatch logo seochat tools logo