PHP найти require_once реальный путь
Мне необходимоrequire_once
это файлыmain.class.php
а такжеfunctions.php
а такжеconfig.php
вadmin/test.php
, как найти php требует реального пути ?!
НОТА:main.class.php
в ,class folder
functions.php
вincludes folder
а такжеconfig.php
вroot
каталог иtest.php
в .admin folder
Каталог файлов:
root
/admin/
->test.php
/class/
->main.class.php
/includes/
->functions.php
/templates
config.php
phpinfo.php