Method Html3():putData() Professional

Write a file on the HTTP server machine.

Syntax
:putData( <cFileContents>, <cHttpFile> ) --> lSuccess
Parameters
<cFileContents>
<cFileContents> is the content of the file <cHttpFile>.
<cHttpFile>
<cHttpFile> is the name of the file that shall be written on the HTTP server machine.
Return

The method returns .T. (true) if the file was written successfully, otherwise .F. (false) is returned.

Description

This method writes the character string <cFileContents into the file cHttpFile>.

If an HTML page shall reference files, only the URLs of the corresponding files are included in the HTML code. This requires the files to reside on the computer where the HTTP server is running (they must be visible for the HTTP server). If the WAA server is running on another computer, the files must be transferred from the WAA server machine to the HTTP server machine.

The file cHttpFile must be accessible from the HTTP server. The file name must include a directory which is located in the document root-directory of the HTTP server. This is normally the directory where temporary files are stored. The forward slash "/" is used as delimiter for directories.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.