是目录的问题,提示包含的文件找不到,按照你的情况,包含时应该去掉前面的/www/red/php/这个目录结构
即
require_once ('db.php');
require_once ('functions.php');
require_once ('vars.php');
即
require_once ('db.php');
require_once ('functions.php');
require_once ('vars.php');
解决方案 »
- linux上php连接mysql错误
- PHP 怎么获取客户机的每一个请求
- PHP:想要从100个手机号中随机选出10个号该怎么做
- iconv问题
- Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement
- 好心的大大们进来看看,给点常用的模块代码或者设计模型吧!开发后台最好了!:)谢谢先:)
- 求助Discuz!安裝問題!我在安裝Discuz!時碰到以下問題,請高手幫盡忙。在線等......
- win2003下安装phpmyadmin的问题
- windows下怎么编译apache2.0
- 如果使GD图形库支持中文?
- 下载计数问题
- 数组问题
而Apache只能用/www/test/XX.php
注意"/"跟"\"
2 你需要修改一下require的路径
require_once ('/www/red/php/db.php');
require_once ('/www/red/php/functions.php');
require_once ('/www/red/php/vars.php');
你现在的require使用的是绝对路径
所以你的PHP程序的那个盘,比如E:
应该确定有如下文件:E:\www\red\php\db.php
E:\www\red\php\functions.php
E:\www\red\php\vars.php如果没有就出错,和IIS无关,和URL更是无关