我有一個使用require_once的問題。 我指定了錯誤的路徑,找不到解決方案。使用require_once的錯誤路徑
我有一個名爲header.php的文件,它使用require_once:functions.php和navigation.php包含兩個文件。 這部分工作正常。 當我嘗試將header.php包含在位於不同目錄中的名爲view.php的文件中時,會出現此問題。
這裏是樹狀結構:
C:\wamp\www\1.1\plugins\docreader\php\view.php
C:\wamp\www\1.1\theme\dark-blue\templates\files\header.inc.php
C:\wamp\www\1.1\theme\dark-blue\templates\files\functions.inc.php
C:\wamp\www\1.1\theme\dark-blue\templates\files\navigation.inc.php
我嘗試了很多不同的路徑,但沒有成功。
請問有人有線索嗎?
你只需要一點['MAGIC'](http://php.net/manual/en/language.constants.predefined.php) – Rizier123 2015-04-03 17:41:14
很高興我的php日子已經結束xD – iamwhitebox 2015-04-03 17:42:24