once() cant find the include path
Hi i am trying to indlude a file by using require_once(). i am using xampp apache php server. the file test.php is in htdocs drupal folder is also in the same directory where the include files is. the code in line 5 is
require_once 'drupal7/includes/bootstrap.inc';
i am getting error
Warning: Division by zero in C:xampphtdocsimport.php on line 5
Warning: require_once(inc') [function.require-once]: failed to open stream: No such file or directory in C:xampphtdocsimport.php on line 5
Fatal error: require_once() [function.require]: Failed opening required 'inc'' (include_path='.;C:xamppphpPEAR') in C:xampphtdocsimport.php on line 5
someone please guide me how to include a local file.
看起来你在第5行中有“花哨的”单引号。(你是否从某处复制过这些内容?)将它们改为常规单引号,如下所示:
require_once 'drupal7/includes/bootstrap.inc';
链接地址: http://www.djcxy.com/p/58116.html
上一篇: PHP处理/变量在PHP文件中生成标记的XML文件
下一篇: 一次()无法找到包含路径