$_SERVER[\'DOCUMENT_ROOT\']
returns
/usr/local/apache/htdocs/
is there a way to get
/home/us
Where is the file that you're running? If it is in your public html folder, you can do echo dirname(__FILE__);
echo dirname(__FILE__);