$_SERVER[\'DOCUMENT_ROOT\']
returns
/usr/local/apache/htdocs/
is there a way to get
/home/us
Out of curiosity, why don't you just use the url for the said folder?
http://www.mysite.com/images
Assuming that the folder never changes location, that would be the easiest way to do it.