Application Root

Note that folders like upload folders and audit trail folder are relative to application root. This enables you to put the uploaded files and the audit trail log files in a folder outside the script folder.

Where is the application root? PHPMaker scripts looks for the application root according to Root Relative Path.

Root Relative Path is the path relative to destination folder. The destination folder is the folder where the generated scripts reside.

When you generate scripts, you must specify the [Application root folder] and the [Destination folder] correctly based on your folder structure. The relative folder structure on your local computer must be the same as that on your production server.

For example, if you put the generated scripts in a subfolder:

In this case, the Root Relative Path is therefore the parent folder of the script, i.e. "..". The scripts will use this relative path to find the application root.

It is recomended that you set the [Application root folder] to the root folder of your website where is accessed by so you can specify your upload folder and audit trail folder straightforwardly using the website root as a starting point. For example, if you specify "upload/" as upload path, since it is relative to application root, the upload folder will be accessible by

On your testing server, you may work with multiple projects and test your projects one folder level lower at http://localhost/<projectname>/ (cf. http://<projectname>/). In this case you should set the [Application root folder] in each project as the root folder of the project (the folder that is accessed by http://localhost/<projectname>/). After uploading to the production server, the site may be then accessed by (cf. http://localhost/<projectname>/), but as long as the relative location of the two folders (Application Root folder and the script folder) are the same, the scripts will still work properly.

Note You can call the PHP function phpinfo() (e.g. <?php phpinfo(); ?>) to view your server information, including the server paths. Alternatively, in the generated scripts (that includes phpfn*.php), you can call the function Info() (e.g. <?php echo Info(); ?>) to view the path settings in your project.


 ©2002-2018 e.World Technology Ltd. All rights reserved.