0

我已通过 Xampp 将谷歌地图应用到我的本地服务器。我已将其移至我的网络托管服务器,但无法连接到数据库。我能够让其他数据库连接正常工作,但这里的问题是我必须错误地输入文件路径。我使用与本地机器上相同的文件结构。

错误:

Warning: require(../includes/core/db/map_dbinfo.php) [function.require]: failed to open stream: No such file or directory in /home/xxxxxxx/public_html/includes/state_map/phpsqlajax_genxml2.php on line 2

Fatal error: require() [function.require]: Failed opening required '../includes/core/db/map_dbinfo.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/includes/state_map/phpsqlajax_genxml2.php on line 2

任何人都知道为什么它现在抛出这些错误而不是在本地机器上以及我该如何修复它?

我真的不知道从哪里开始,甚至不知道如何表达这个问题。任何帮助,将不胜感激。谢谢

4

1 回答 1

1

你站在里面.../includes/states_map/phpsqlajax_genxml2.php并试图到达“ ../includes/core/db/map_dbinfo.php”。如果您从您返回一个目录states_map到包含,然后您尝试在包含目录下查找包含。

将包含更改为../../includes/core/db/map_dbinfo.php

为什么会这样?可能是因为您在本地服务器上已在 php 中.../includes添加了您的 r include_path,然后会尝试includes/../includes/...

于 2013-07-07T20:15:28.563 回答