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
  • 5,635
  • 7
  • 34
  • 67

0 Answers0