CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: flush

  1. #1
    Join Date
    Sep 2008
    Posts
    10

    flush

    what is " flush"?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    106

    Re: flush

    Normally a webserver parses the whole code and than sends the output to the client.
    With flush(); you send what you have parsed
    Handy for pages with a lot of content.
    Code:
    <?php
    blabla code
    flush();
    blabla more code
    flush();
    ?>

  3. #3
    Join Date
    Sep 2008
    Posts
    10

    Re: flush

    thanks ternoz..

    so flush and print have same property in some way

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: flush

    Flush and print are not alike at all. Print() only outputs to the PHP buffers what will be sent to the client-side. The buffer information will only be sent after the server has finished or you flush the buffers.

    Note tht flush() only flushes output from PHP. If you want a full webserver flush, you need to use ob_flush() along with flush().
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Sep 2008
    Posts
    10

    Re: flush

    thanks for help.

    So that means that it is FLUSH(), that sends data to client..
    Right?

  6. #6
    Join Date
    May 2002
    Posts
    10,943

    Re: flush

    Correct.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured