这可能是一个非常愚蠢的问题,但我真的很沮丧因为它不起作用。我有一个主页文件(home.php)
,其中包含<? include ("/production/fetch_order.php"); ?>
。正如可以看到的那样,我正在尝试从 home.php 访问一个名为fetch_order.php
的文件,该文件位于 production 文件夹中。我的路径是正确的,拼写也绝对正确。然而我最终遇到了以下错误:
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