Executing script statements one by one ?

Discussion in 'PHP' started by domainsurfer, Nov 3, 2007.

  1. #1
    Im writing a script to check for open port 411 on all machines in my subnet.

    Now, while the script starts executing , nothing shows up on the screen until the script is finished.
    How can i change that ?

    The entire page gets shown at one go, after 100 seconds or so.. how can i make it show line by line, as each IP is checked ?


    Thanks alot in advance for any help !!
     
    domainsurfer, Nov 3, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Try adding this right after the fclose():
    
    ob_flush();
    flush();
    
    PHP:
     
    nico_swd, Nov 3, 2007 IP
  3. Brewster

    Brewster Active Member

    Messages:
    489
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Hi

    Use the function ob_flush()

    Brew
     
    Brewster, Nov 3, 2007 IP