获取入口文件index.php的路径

2025-05-21 23:02:52
推荐回答(1个)
回答1:

$path = dirname(__FILE__).'/config.php';   // 这句话放在入口文件中,这个$path就是你要的路径