There is a file at the root of the site, for example /var/www/html/mysite/html/conf.php
, but the full way to it is not known to him in advance, only his name is known how to make include
this file conf.php from the file that is performed in /html/img/conf/res.php
Answer 1, Authority 100%
Try
echo $ _server ['document_root'];