Добро пожаловать, Гость!
Чтоу меня с инклудами?
Общие вопросы | Чтоу меня с инклудами?
Искатель
:
Драсте всем помогите разобраться с инклудами
Почему такая ошибка?
<?
Warning: include_once(../sys/inc/start.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 2
Warning: include_once() [function.include]: Failed opening '../sys/inc/start.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 2
Warning: include_once(../sys/inc/compress.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 3
Warning: include_once() [function.include]: Failed opening '../sys/inc/compress.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 3
Warning: include_once(../sys/inc/sess.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 4
Warning: include_once() [function.include]: Failed opening '../sys/inc/sess.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 4
Warning: include_once(../sys/inc/home.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 5
Warning: include_once() [function.include]: Failed opening '../sys/inc/home.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 5
Warning: include_once(../sys/inc/settings.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 6
Warning: include_once() [function.include]: Failed opening '../sys/inc/settings.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 6
Warning: include_once(../sys/inc/db_connect.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 7
Warning: include_once() [function.include]: Failed opening '../sys/inc/db_connect.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 7
Warning: include_once(../sys/inc/ipua.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 8
Warning: include_once() [function.include]: Failed opening '../sys/inc/ipua.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 8
Warning: include_once(../sys/inc/fnc.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 9
Warning: include_once() [function.include]: Failed opening '../sys/inc/fnc.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 9
Warning: include_once(../sys/inc/user.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 10
Warning: include_once() [function.include]: Failed opening '../sys/inc/user.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 10
?>
Чтоу меня с инклудами?
31 Авг 2013Драсте всем помогите разобраться с инклудами
Почему такая ошибка?
<?
Warning: include_once(../sys/inc/start.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 2
Warning: include_once() [function.include]: Failed opening '../sys/inc/start.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 2
Warning: include_once(../sys/inc/compress.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 3
Warning: include_once() [function.include]: Failed opening '../sys/inc/compress.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 3
Warning: include_once(../sys/inc/sess.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 4
Warning: include_once() [function.include]: Failed opening '../sys/inc/sess.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 4
Warning: include_once(../sys/inc/home.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 5
Warning: include_once() [function.include]: Failed opening '../sys/inc/home.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 5
Warning: include_once(../sys/inc/settings.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 6
Warning: include_once() [function.include]: Failed opening '../sys/inc/settings.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 6
Warning: include_once(../sys/inc/db_connect.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 7
Warning: include_once() [function.include]: Failed opening '../sys/inc/db_connect.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 7
Warning: include_once(../sys/inc/ipua.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 8
Warning: include_once() [function.include]: Failed opening '../sys/inc/ipua.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 8
Warning: include_once(../sys/inc/fnc.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 9
Warning: include_once() [function.include]: Failed opening '../sys/inc/fnc.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 9
Warning: include_once(../sys/inc/user.php) [function.include-once]: failed to open stream: No such file or directory in Q:hometest1.rusubdomaindialogsindex.php on line 10
Warning: include_once() [function.include]: Failed opening '../sys/inc/user.php' for inclusion (include_path='.;C:phppear') in Q:hometest1.rusubdomaindialogsindex.php on line 10
?>
Комментарии:
Vafler 31 Авг 2013
Скиталец (31 Авг 2013):
Vafler, тогда хрен его знает что у тебя там
Скиталец, Вот и я о том же, за 3года в php несталкивался с этимVafler, тогда хрен его знает что у тебя там
Скиталец 31 Авг 2013
Vafler (31 Авг 2013):
Скиталец, Вот
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
?>
Vafler, тогда хрен его знает что у тебя тамСкиталец, Вот
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
?>
Vafler 31 Авг 2013
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
?>
Скиталец (31 Авг 2013):
Так сделано?
Include_once '../sys/inc
Скиталец, ВотТак сделано?
Include_once '../sys/inc
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
?>
Скиталец 31 Авг 2013
Короче если файл в корневой директории сайта инклуд должен начинаться так
include_once 'sys/inc/start.php';
если в поддиректории (в папке)
include_once '../sys/inc/start.php';
ну и чем дальше от корня тем больше слэшей
include_once '../../sys/inc/start.php';
этим ты указываеш файлу корневую директорию
Короче если файл в корневой директории сайта инклуд должен начинаться так
include_once 'sys/inc/start.php';
если в поддиректории (в папке)
include_once '../sys/inc/start.php';
ну и чем дальше от корня тем больше слэшей
include_once '../../sys/inc/start.php';
этим ты указываеш файлу корневую директорию