require_once(C:\ wamp \ www \ ecommerce \ pages \ ecommerce.php)[function.require-once]:无法打开流:

时间:2015-03-23 12:28:31

标签: php

Warning: require_once(C:\wamp\www\ecommerce\pages\ecommerce.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\ecommerce\classes\Core.php on line 59

我正在使用PHP,MYSQL关注其中一个Web电子商务项目的项目视频。

这是我的run()方法投掷错误:

public function run() {

        ob_start();


        switch ($this->objUrl->module) {
            case 'panel':
                set_include_path(implode(PATH_SEPARATOR, array(
                    realpath(ROOT_PATH.DS.'admin'.DS.TEMPLATE_DIR),
                    realpath(ROOT_PATH.DS.'admin'.DS.PAGES_DIR),
                    get_include_path()
                    )));
                require_once(ROOT_PATH.DS.'admin'.DS.PAGES_DIR.DS.
                    $this->objUrl->cpage.'.php');
                break;

            default:
                set_include_path(implode(PATH_SEPARATOR, array(
                    realpath(ROOT_PATH.DS.TEMPLATE_DIR),
                    realpath(ROOT_PATH.DS.PAGES_DIR),
                    get_include_path()
                    )));
                require_once(ROOT_PATH.DS.PAGES_DIR.DS.
                    $this->objUrl->cpage.'.php');

        }



        ob_get_flush();
    }

0 个答案:

没有答案