How to include PHP files that require an absolute path?

$root = realpath($_SERVER["DOCUMENT_ROOT"]);

include "$root/inc/include1.php";