用 getcwd() 函数或 dirname(__FILE__)
代码如下:
echo getcwd() . "";echo dirname(__FILE__);?>
来源: https://www.php1.cn/detail/php-ecb04da4e1.html