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’];
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x