PHP flush() help needed

Discussion in 'PHP' started by SearchBliss, Apr 15, 2010.

  1. #1
    I have written a broken link checker tool in PHP that won't flush correctly to the browser. As a result, the server takes too long to communicate with the browser, causing the browser to only load half the results page. I need an experienced php coder to take a look at the full source code for me to see what I am doing wrong. I am good with vbScript, but PHP is new to me.

    In exchange, the one cleans up the code and fixes the ob_flush()/flush() issue may then use the script as they please.

    Please PM me or reply if you are interested. Thanks!
     
    SearchBliss, Apr 15, 2010 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    obflush(); flush(); after each line of output (assuming you have one big loop doing output) should work.
     
    matthewrobertbell, Apr 15, 2010 IP
  3. SearchBliss

    SearchBliss Well-Known Member

    Messages:
    1,899
    Likes Received:
    70
    Best Answers:
    2
    Trophy Points:
    195
    Digital Goods:
    1
    #3
    I have this, yet it still doesn't flush. This is why I need someone to look at the code itself. I would post post it, but I don't want to give it away. So if you or someone else is willing to look, I can PM it. Interested? Thanks.
     
    SearchBliss, Apr 15, 2010 IP
  4. Kaimi

    Kaimi Peon

    Messages:
    60
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What browser do you use? As far as i know some browsers don't work with ob_flush, flush
     
    Kaimi, Apr 15, 2010 IP
  5. SearchBliss

    SearchBliss Well-Known Member

    Messages:
    1,899
    Likes Received:
    70
    Best Answers:
    2
    Trophy Points:
    195
    Digital Goods:
    1
    #5
    IE7, IE8, and FF3+
    I know IE needs a cretain amount of data in the beffer before it renders to the broeser, but those tricks didn't work either.
    Is the tool flushing for you?:
    http://www.searchbliss.com/seo-tools/broken-link-checker.php
    And does it stop loading the results for you as well?
    Thanks.
     
    SearchBliss, Apr 15, 2010 IP