我正在此错误问题与包括文件
[28-Jan-2011 09:49:03] PHP Warning: require_once(../../includes/database.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/photo/application/php/classes/users.php on line 2
[28-JAN-2011 9时49分03秒] PHP致命错误:require_once()[function.require]:所需的开口失败”。 ./../includes/database.php'(include_path ='。:/ Applications/MAMP/bin/php5.3/lib/php')在/ Applications/MAMP/htdocs/photo/application/php/classes/users .PHP第2行
文件我想包括在
/Applications/MAMP/htdocs/photo/application/includes/database.php
我相信该文件是存在的,我已经检查,双重检查,三重检查 这是users.php行2
require_once '../../includes/database.php';
可能是什么问题
在require_once之前打印出``pwd``来查看您实际所在的目录。 – akond 2011-01-28 06:55:08