我一直有PHP包含函數的問題。我正在創建商店網站,並創建了購物車。我希望它在每個頁面的邊欄中都有,因此我使用include。PHP包含不一致的工作
在文件/public_html/product/index.php在線37: include("converter.php");
文件converter.php在/public_html/include/converter.php
有時它似乎工作但大多數時候它顯示:
警告:包括(converter.php)[]:未能打開流:在/public_html/product/index.php沒有這樣的文件或目錄上線37
然後
警告:包括()[]:未能打開 'converter.php' 列入(include_path中=」:/ usr/lib中/ PHP:在/ usr /本地/在/home/a3371827/public_html/product/index.php在線37
我錯過了一些關於包括?
,是完美的感謝 – Niall