How to set apache to send out content immediately?

Discussion in 'Apache' started by smilesquare, Mar 30, 2008.

  1. #1
    When I call php script, it take a long time like waiting until finish the process, then just show the content.

    How can I set it to show content immediately, no caching no waiting?
    I want to see the progress, output sent by the script.

    Thanks.
     
    smilesquare, Mar 30, 2008 IP
  2. djacobs

    djacobs Well-Known Member

    Messages:
    238
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #2
    I'm not sure how you can show the content immediately without caching?

    What exactly are you referring to?
     
    djacobs, Mar 31, 2008 IP
  3. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #3
    This has nothing to do with Apache.
    It's a PHP question & will depend entirely on what the script is doing.
     
    joebert, Mar 31, 2008 IP
  4. smilesquare

    smilesquare Peon

    Messages:
    70
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I found out myself, just set in php.ini

    implicit_flush = On

    ; Implicit flush tells PHP to tell the output layer to flush itself
    ; automatically after every output block
     
    smilesquare, Apr 2, 2008 IP