How to get the absolute path to the public_html folder?

后端 未结 11 1377
离开以前
离开以前 2020-12-08 14:25
$_SERVER[\'DOCUMENT_ROOT\']

returns

/usr/local/apache/htdocs/

is there a way to get

/home/us         


        
11条回答
  •  感动是毒
    2020-12-08 15:02

    something I found today, after reading this question and continuing on my googlesurf:

    https://docs.joomla.org/How_to_find_your_absolute_path

    
    

    works for me

提交回复
热议问题