PHP包含目录错误缓存


PHP include directory error cache

远程服务器错误:

"Warning: include_once(../_includes/check_login_status.php) [function.include-once]: failed to open stream: No such file or directory in /home/content/60/10824160/html/index.php on line 1"

嘿,伙计们,我正试图得到所有这些目录错误的修复。基本上,我将整个网站文件夹移动到另一台计算机上,现在我的php include函数试图找到这台计算机上不存在的"/home/content/60/10824160/html/index.php"

我的index.phpDesktop/www/,我的check_login_statusDesktop/www/_includes/

我尝试使用php缓存功能,但不理解。我需要做什么?

try this

include_once($_SERVER["DOCUMENT_ROOT"]."/_includes/check_login_status.php");

还要确保你的文件/目录名是正确的

删除或更正您的include_once -这是唯一的解决方案。