php获取一些根目录的方法
<?php
echo $_SERVER['PHP_SELF'];
echo "<BR>";
echo __FILE__;
echo "<BR>";
echo realpath("./");
echo "<BR>";
echo __DIR__;
echo "<BR>";
echo "<BR>";
define("ROOT",str_ireplace("Temp","",__DIR__));
echo ROOT;
中国足彩网信息请查看IT技术专栏