我建立一個小的PHP系統,我可以像CSS樣式沒有打開的文件,PHP包括功能和圖像。PHP錯誤 - 無法打開文件
我也得到了一些錯誤:
Warning: include(includes/functions.php) [function.include]: failed to open stream: No such file or directory in /home/chezki/public_html/XXX.XXX/cp/CMS/index.php on line 2
Warning: include(includes/functions.php) [function.include]: failed to open stream: No such file or directory in /home/chezki/public_html/XXX.XXX/cp/CMS/index.php on line 2
Warning: include() [function.include]: Failed opening 'includes/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/chezki/public_html/XXX.XXX/cp/CMS/index.php on line 2
Built by YYY.YYY
logo // Thats the Logo alt
Fatal error: Call to undefined function getlists() in /home/chezki/public_html/XXX.XXX/cp/CMS/index.php on line 28
Title Actions // Some images alt
編輯:在Windows中,這是好的,但在Linux上,這是在做這些錯誤 更多編輯:解決
你認爲那是什麼*沒有這樣的文件或目錄*意味着什麼? – 2013-03-06 15:37:14
你有沒有嘗試在包含路徑前放一個'。/'(代表「當前目錄」)? – anroesti 2013-03-06 15:39:16
@anroesti:沒必要。 include_path已經包含了''' – 2013-03-06 15:40:44