Physical name of the loaded main script.
This is the name of the script that has been loaded and served through the web server request. It may be different from the file name that has been actually requested, as the web server may perform several mappings.
scriptPath + "/" + scriptName is granted to give the complete file path where the script has been loaded.
Physical path of the loaded main script.
This is the directory where the script that has been served through the web server request has been loaded from. It may be different from the path requested, as the web server may perform several path mappings.
scriptPath + "/" + scriptName is granted to give the complete file path where the script has been loaded.
This information can be useful to the scripts to know the base directory of their main code, and use that to perform relative operations on the filesystem.
Note: scriptPath won't be changed through submodules; it stays the same all through one execution.