作者:
edyucheng (edyucheng)
2017-05-11 16:14:17有兩個檔案fileA和fileB
fileA路徑:localhost/folder/fileA.php
fileB路徑:localhost/fileB.php
今天我要在fileA.php中使用fileB
我用require_once("../fileB.php")可以讀到fileB檔案,
為什麼我用絕對路徑require_once("/fileB.php")會找不到檔案呢?
reqire_once有限制不能參數不能用絕對路徑嗎?
如果一定要用絕對路徑的話,要怎麼用才好呢?