Contact | Privacy | Datenschutzerklärung | Impressum

writefile Tag

Format: <writefile Expression [ "a" ] > heitml </writefile>

Purpose: Writes the body to the file denoted by Expression. If a second parameter is specified, the body is appended to the file. If the file doesn't exist, it is created.

Anything you type between the opening and closing writefile tags is processed in HTML mode where the resulting string output is not sent to the browser, as usual, but to the file denoted by Expression. The Expression must evaluate to a string.

Configuration: The writefile Tag is not allowed in secure mode. On UNIX, the writefile tag will fail, if the configuration option includeall is switched off and the file name denotes a symbolic link.

See Also: Contents of a file can be read using the function readFileLines().

Note: The writefile Tag is Case Sensitive, which means heitml will not recognize it if you use capital letters (e.g. <WRITEFILE>).

This page was dynamically generated by the web application development tool RADpage of H.E.I. Try the AJAX Article (in German) on www.h-e-i.de.
© 1996-2024 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    Expressions
    Objects
    Methods
    Classes
    heitml Tags
      ? Tag
      assign Tag
      break Tag
      callenv Tag
      dbdatabase Tag
      dbquery Tag
      dbupdate Tag
      def Tag
      defautoclose Tag
      defbody Tag
      defclass Tag
      defcontpara Tag
      defenv Tag
      defhtml Tag
      definpara Tag
      defpara Tag
      defremovecdata Tag
      deftranspara Tag
      defwysiwyg Tag
      for Tag
      forin Tag
      forsep Tag
      if Tag
      elsif Tag
      else Tag
      include Tag
      includeonce Tag
      inherit Tag
      let Tag
      mail Tag
      return Tag
      shell Tag
      while Tag
      writefile Tag
      \ Tag
    heitml Functions
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    Sessions
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  Tutorial
  New Features
  heitml 1
User Guide
Services
Privacy
Datenschutz
 
Contact / Impressum