-
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’];
Subscribe
0 Comments
Oldest