version 11 (Modified)
SET HTML ROOT (rootFolder)
Parameter | Type | Description | |
rootFolder | String | Pathname of Web server root folder |
Description
The SET HTML ROOT command is used to modify the default root folder where 4D looks for the HTML files requested of the Web server.
This command does not take the default root folder that may have been set in the database Preference into account. For more information about this folder, please refer to the Connection Security section.
The location of the root folder can be expression either in HTML syntax (URL type), or in system syntax (absolute path):
HTML syntax: folder names are separated by a slash ("/"), regardless of the platform you use.
System syntax: absolute pathname ("long name") respecting the syntax of the current platform, for example:
- (Mac OS) Disk:Applications:myserv:folder
- (Windows) C:\Applications\myserv\folder
Notes:
The Web server will need to be restarted in order for the new root folder to be taken into account.
You can find out the location of the current root folder at any time using the Get 4D folder command.
If you specify an invalid pathname, an OS File manager error is generated. You can intercept the error with an ON ERR CALL method. If you display an alert or a message from within the error method, it will appear on the browser side.
See Also