php获取网站根目录绝对路径并用require包含文件小技巧

<?php
$root_d=$_SERVER[‘DOCUMENT_ROOT’];
$root_d=$root_d.”包含文件所在路径”;
require($root_d);
?>