getDocumentRoot
null|string public static \Bitrix\Main\Application::getDocumentRoot( );
Static method returns server's document root.
Attention! Now, Bitrix\Main\Application::getDocumentRoot() can be used instead of $_SERVER["DOCUMENT_ROOT"].
No parameters
Examples
How to get document_root from the app's class:
$docRoot = Application::getDocumentRoot()
© «Bitrix24», 2001-2024
Up