4D v14.3

WEB SET ROOT FOLDER

Home

 
4D v14.3
WEB SET ROOT FOLDER

WEB SET ROOT FOLDER 


 

WEB SET ROOT FOLDER ( rootFolder ) 
Parameter Type   Description
rootFolder  String in Pathname of Web server root folder

The WEB SET ROOT FOLDER 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 Settings 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.

 
PROPERTIES 

Product: 4D
Theme: Web Server
Number: 634

This command modifies the Error system variable

 
HISTORY 

Modified: 4D v11 SQL
Renamed: 4D v13

 
SEE ALSO 

Get 4D folder
ON ERR CALL

 
ARTICLE USAGE

4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)

Inherited from : SET HTML ROOT ( 4D v12.4)