关于PHP挖掘和安装

时间:2011-11-17 18:58:38

标签: php

我正在研究某些事情并且它无法正常工作。我收到了这个错误:

Warning: include(../includes/config.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include(../includes/config.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include() [function.include]: Failed opening '../includes/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include(../libs/auth.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Warning: include(../libs/auth.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Warning: include() [function.include]: Failed opening '../libs/auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Fatal error: Call to undefined function phpdighttpvars() in /home/valerie2/public_html/elinkswap/snorris/install.php on line 27

以下是获取错误的代码:

   24. include $relative_script_path.'./includes/config.php';
   25. include $relative_script_path.'./libs/auth.php';
   26.
   27. extract( phpdigHttpVars(
       array('step'=>'integer',

好的第24行,其中包含有一个点,我把它放在那里,因为有时它会有所帮助。但它之前没有那个,我仍然有错误。我不明白为什么我不能让这些工作。有人可以帮我理解吗?

1 个答案:

答案 0 :(得分:0)

它正在寻找的实际文件是

$relative_script_path.'./includes/config.php';

调试的一种方法是使用该路径消亡,然后您可以查看它真正需要的内容:

die($relative_script_path.'./includes/config.php');

页面应该在该点停止并显示整个文件路径。您通常会看到错误可能是什么。