【发布时间】:2011-02-27 09:38:46
【问题描述】:
这是第一个错误:
Warning: require(/hb/includes/constants.php) [function.require]: failed to open stream: No such file or directory in C:\wamp2\www\hb\includes\connection.php on line 2
以及紧随其后的第二个错误:
Fatal error: require() [function.require]: Failed opening required '/hb/includes/constants.php' (include_path='.;C:\php\pear') in C:\wamp2\www\hb\includes\connection.php on line 2
这是它不喜欢的行:
require("/hb/includes/constants.php");
我确实安装了新版本的 WAMP,但我知道目录/文件很好,并且代码以前可以在另一台服务器上运行。似乎我的 require() 都不再起作用了。我试着环顾四周,有些人向其他人建议他们编辑他们的 php.ini,但我不知道我会指向哪个目录 - 如果你不能说我对所有与服务器相关的事情都很无知。
感谢任何帮助。
【问题讨论】: