![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
朋友的服务器是2003 +iis +php
别的都好 就是不支持“./include/config.php”这样的路径
比如
CODE: <?php ... require './globals/globals.php'; ... ?> |
这样就会报错
CODE: Warning: require(./globals/globals.php) [function.require]: failed to open stream: No such file or directory in E:\cnccu\job\index.php on line 18 Fatal error: require() [function.require]: Failed opening required './globals/globals.php' (include_path='.;C:\php5\pear') in E:\cnccu\job\index.php on line 18 |
而去掉“./”
CODE: <?php ... require 'globals/globals.php'; ... ?> |
就可以
同样的程序在我机器上没问题……
why?
注意 require './globals/globals.php';
这里是一个点和一个正斜线 ./
提问者:kukat 08-22 12:12
答复

