Is there a way to get a websites public_html directory (or eqivilant)
I am writing a script that needs to know if the websites web accessible directory is located in public_html, wwwroot, or something else (since it's different across different web servers)
i don't want to get the entire path with $_SERVER[DOCUMENT_ROOT], and I don't know how to break apart the string /home/user/etc/public_html/ since this is going to be different from server to server,
basically, i just want to know if there is a way to know where the wwwroot directory is, if it's public_html or whatever else it might be...
thanks