0

I am trying to establish a root directory so I can link to other directories on my localhost server. However using $_SERVER['DOCUMENTROOT'] is showing a file path "C:/xampp/htdocs/myApp/" instead of "localhost/myApp/".

Constants haven't worked for me since they are not accessible outside of the file it is declared in?

Any suggestions? Thanks!

yasarui
  • 6,209
  • 8
  • 41
  • 75

0 Answers0