php中如何在a.php引用在它上一层文件夹的b.php

2024-12-12 03:43:07
推荐回答(3个)
回答1:

include "../b.php"
// 或者
include dirname(dirname(__FILE__)) . "/b.php"

回答2:

../include/b.php

回答3:

include(../b.php)