[thinkphp] 获取根目录绝对路径

$root = realpath(__ROOT__);

  

转载于:https://www.cnblogs.com/bushe/p/4620342.html

你可能感兴趣的:([thinkphp] 获取根目录绝对路径)