Deutsch English
Alphabetical index
Array functions
CGI functions
  • cgibuffer()
  • cgiclearbuffer()
  • cgiclosebuffer()
  • cgiexec()
  • cgigetparam()
  • cgigetsession()
  • cgitestparam()
  • cgitestsession()
  • cgiwrite()
  • cgiwritehtml()
  • cgiwriteln()
  • cgiwritetemplate()
  • endcgi()
  • endsema()
  • getquerystring()
  • http_post()
  • initcgi()
  • waitsema()
    Data types
    Date functions
    Debugging
    Fulltext functions
    Language elements
    Numerical functions
    Operators
    Other functions
    Ramtext functions
    Selecting
    Socket functions
    Statistical functions
    Stream functions
    String functions
    System functions
    Table functions
    Text functions
    Home    Overview    Search    Impressum    Contact    Members
    Topic complex CGI functions
    Function cgiclearbuffer()
    Short Deletes the content of the output buffer
    Syntax CGICLEARBUFFER
    Parameter
    Return 0
    See also:
    cgiclosebuffer() cgibuffer()
    Description Deletes the content of the buffer without putting it out. The buffering is not terminated, i.e. all following outputs are buffered again.

    This function can be used, if e.g. an error occurs to output an error message instead of the so far outputs. Also another header can be put out.

    Example 1: CGIClearBuffer

    Decides to re-locate even after the HTTP-header has been written already.

    CGIWriteLn('content-type: text/html');
    CGIWriteLn('');
    LoadTemplate(my_template);
    IF GetQueryString('command')='start_admin' THEN
      CGIClearBuffer;
      CGIWriteLn('location: /cgi-tdb/login.prg')
      CGIWriteLn('')
    END


    User comments:
    Write a comment:
    Name
    EMail
    Subject
    Text (Switch mode)

    Choose between
    the normal and the
    advanced editor.
    The advanced editor
    runs in IE 5+ and
    Mozilla 1.4+ only
    SPAM-Protection Please enter tdbengine in this field.

    tdbengine chat
    irc.tdbengine.org
    #tdbengine

       Copyright © 2003-2004 tdb Software Service GmbH
       Alle rechte vorbehalten. / All rights reserved
       Last changed: 21.10.2004
    {Fehler für :execmacro{execmacro="sessionspy"}