include.php怎么没有用啊。。
<?php session_start(); define("ROOT", dirname(__FILE__)); set_include_path(".".PATH_SEPARATOR.ROOT."/lib".PATH_SEPARATOR.ROOT."/core".PATH_SEPARATOR.ROOT."/configs".PATH_SEPARATOR.get_include_path()); require_once 'mysql.func.php'; require_once 'image.func.php'; require_once 'common.func.php'; require_once 'string.func.php'; require_once 'page.func.php'; require_once 'upload.func.php'; require_once 'configs.php'; require_once 'admin.inc.php'; connect();
这是include.php
但是每当require_once '../include.php';
都没用,,比如在doLogin.php里用,报警加错误
Warning: require_once(../include.php): failed to open stream: No such file or directory in E:\wamp\www\shop\wodeshop\admin\doLogin.php on line 2
Fatal error: require_once(): Failed opening required '../include.php' (include_path='.;C:\php\pear') in E:\wamp\www\shop\wodeshop\admin\doLogin.php on line 2
前面验证码包涵它的时候也是没有,但用require_once '../lib/image.func.php'; 是没问题的。
在线求解啊。。。