-- Список сообщений
-- Поиск --
| Ошибка include() [function.include] |
|
Mares
|
04.03.10 14:46 |
Есть необходимость создать локальную копию рабочего сайта, с хостинга перенес сайт и базу в "Денвер" при запуске локальной копии появилась ошибки:
Цитата:
Warning: require_once(xv/commons.php) [function.require-once]: failed to open stream: No such file or directory in Z:\home\aquaman\www\index.php on line 32
было в файле index.php
Цитата:
require_once( "xv/commons.php" );
require_once( "xv/xml/xml5.php" );
require_once( "xv/functions.php" );
require_once( "xv/db.php" );
require_once( "xv/configure.php" );
$document = new document_base;
require_once( "xv/authority.php" );
добавил имя папки
Цитата:
require_once( "include/xv/commons.php" );
require_once( "include/xv/xml/xml5.php" );
require_once( "include/xv/functions.php" );
require_once( "include/xv/db.php" );
require_once( "include/xv/configure.php" );
$document = new document_base;
require_once( "include/xv/authority.php" );
Появилась следующая ошибка :(
Цитата:
Warning: include(main.php) [function.include]: failed to open stream: No such file or directory in Z:\home\aquaman\www\index.php on line 42
Warning: include() [function.include]: Failed opening 'main.php' for inclusion (include_path='Z:\home\aquaman\www\include:.;/usr/local/php5/PEAR') in Z:\home\aquaman\www\index.php on line 42
Fatal error: Class 'XSLTProcessor' not found in Z:\home\aquaman\www\include\xv\xml\xml5.php on line 96
Строки на которые он ругается (40, и 42 строка файла index.php)
Цитата:
$inclurl = ( ( isset($_REQUEST['l'])?basename($_REQUEST['l']): ( isset( $cfg["index"] )? $cfg["index"]:'main')).".php");
(file_exists($xv_include_path.'/'.$inclurl))?include($inclurl): include("main.php");
96 строка файла xml5.php
Цитата:
$prc = new XSLTProcessor();
файл main.php находится Z:\home\aquaman\www\include\
С путями пытаюсь разобраться, проблема в том что я совсем не програмер :(( |
| ответить |
|