這可能只是一個非常愚蠢的問題,但我真的很沮喪,這不工作。 我有一個主文件(home.php)
其中包含<? include ("/production/fetch_order.php"); ?>
。正如我可以看到我試圖從home.php訪問文件。該文件命名爲fetch_order.php
,位於生產文件夾中。我的路徑是正確的,拼寫也是絕對正確的。但是我結束了這個錯誤:include():未能打開流:沒有這樣的文件或目錄
Warning: include(/production/fetch_order.php) [function.include]:
failed to open stream: No such file or directory in /path/to/home.php on line 119
Warning: include() [function.include]: Failed opening '/production/fetch_order.php'
for inclusion (include_path='.:/path/to/php/php5.3.6/lib/php') in
/path/to/home.php on line 119
一個經常運行到這個錯誤,並迅速解決它,請按照下列步驟操作:http://stackoverflow.com/a/36577021/2873507 – 2016-04-12 17:02:02
的可能的複製[失敗打開流:沒有這樣的文件或目錄](http://stackoverflow.com/questions/36577020/failed-to-open-stream-no-such-file-or-directory) – 2016-04-30 14:24:15