Страница 1 из 1

failed to open stream: No such file or directory

Добавлено: 12 май 2017, 10:59
wolfrich
Проблема в следующем, есть такой код при переходе по ссылке выдаёт ошибку
[12-May-2017 10:42:57 Europe/Moscow] PHP Warning:  require_once(E:\OpenServer\domains\localhost/includes/config.php): failed to open stream: No such file or directory in E:\OpenServer\domains\localhost\bootstrap.php on line 26
[12-May-2017 10:42:57 Europe/Moscow] PHP Fatal error:  require_once(): Failed opening required 'E:\OpenServer\domains\localhost/includes/config.php' (include_path='.;e:/openserver/modules/php/PHP-5.6;e:/openserver/modules/php/PHP-5.6/PEAR/pear') in E:\OpenServer\domains\localhost\bootstrap.php on line 26
// set absolut & base path
define('ABSPATH',dirname(__FILE__).'/');
define('BASEPATH',dirname($_SERVER['PHP_SELF']));


// check the config file
if(!file_exists(ABSPATH.'includes/config.php')) {
    /* the config file doesn't exist -> start the installer */
    header('Location: ./install');
}


// get system configurations
require_once(ABSPATH.'includes/config.php');

Re: Ошибка подключаемых файлов

Добавлено: 12 май 2017, 11:31
Asmodey
Вестимо
/* the config file doesn't exist -> start the installer */
не ведёт к появлению файла
ABSPATH.'includes/config.php'

Re: failed to open stream: No such file or directory

Добавлено: 12 май 2017, 16:16
DelphinPRO
Будете мусорить в чужить топиках - забаню. Есть вопрос - создавайте свою тему.