Thread: Flush a webpage

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

    Join Date
    Jul 2003
    Posts
    19
    Rep Power
    0

    Flush a webpage


    I'm using Python as cgi script. One of my pages contains a very time consuming function call. Not all text that is supposed to be presented before the function call is presented. Is it possible to flush the presentation of html text before the function is called?
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    This is likly caused by system buffering, I've never had cause to run without buffering because my CGI scripts tend to be pretty fast. but i think putting -u after your shebang should work though.

    Mark.

IMN logo majestic logo threadwatch logo seochat tools logo