2008-9-4 10:45
ooooooq
[問題求救] 無法用require_once等函數載入discuz!? 請大家指教
各位前輩好
我想在tl01.php內載入discuz
以下是tl01.php部分程式碼
<?php require_once "creat.html"; ?>
<?php require_once '../dc/index.php'; ?>
可以載入creat.html
但載入index.php出現以下錯誤訊息
--------------------------------------------------------------------------------------------------
Warning: require_once(./include/common.inc.php)
[function.require-once]: failed to open stream: No
such file or directory in C:\AppServ\www\dc\index.php on line 12
Fatal error: require_once() [function.require]: Failed opening
required './include/common.inc.php' (include_path='.;C:\php5\pear')
in C:\AppServ\www\dc\index.php on line 12
---------------------------------------------------------------------------------------------------
我分別用include, include_once, require等函數測試
出現一樣的錯誤訊息
1.
此錯誤訊息是?
是不是因為index.php本身有用require_once,因此而相衝呢?
discuz的index位置沒指錯
2.
php裡還有Location
但是他是導向另外一頁而不是載入
我的tl01.php不希望用iframe來分別導向兩個網頁
有什麼解決方法嗎?
此問題困擾著我
希望能請各位前輩指教
謝謝!