Display current server path
To get your current working directory: echo getcwd(); (documentation) To get the document root directory: $_SERVER[‘DOCUMENT_ROOT’]; To get the filename of the current script: $_SERVER[‘SCRIPT_FILENAME’];
To get your current working directory: echo getcwd(); (documentation) To get the document root directory: $_SERVER[‘DOCUMENT_ROOT’]; To get the filename of the current script: $_SERVER[‘SCRIPT_FILENAME’];