В правой части навигации сайта, есть пункт называется - "Пункт1". Не могу сослаться от него на файл videolessons.php который лежит в папке blocks. Выдаёт такие ошибки. Код (Text): Warning: main(blocks/header.php): failed to open stream: No such file or directory in z:\home\sitik.ru\www\blocks\videolessons.php on line 15 Warning: main(): Failed opening 'blocks/header.php' for inclusion (include_path='.;/usr/local/php/PEAR') in z:\home\sitik.ru\www\blocks\videolessons.php on line 15 Warning: main(blocks/kontent.php): failed to open stream: No such file or directory in z:\home\sitik.ru\www\blocks\videolessons.php on line 19 Warning: main(): Failed opening 'blocks/kontent.php' for inclusion (include_path='.;/usr/local/php/PEAR') in z:\home\sitik.ru\www\blocks\videolessons.php on line 19 Warning: main(blocks/footer.php): failed to open stream: No such file or directory in z:\home\sitik.ru\www\blocks\videolessons.php on line 23 Warning: main(): Failed opening 'blocks/footer.php' for inclusion (include_path='.;/usr/local/php/PEAR') in z:\home\sitik.ru\www\blocks\videolessons.php on line 23 Пробовал уже по разному писать не выходит. Архив вложил. http://www.sharemania.ru/0198776
1)/blocks/videolessons.php 2)blocks/videolessons.php 3)../blocks/videolessons.php 4)../../blocks/videolessons.php Ни какой вариант не работает.
Что у него в архиве: index.php PHP: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><title>Видео</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body class="marginpadding"> <!-- ШАПКА --> <table class="bordur" width="100%"> <?php include("blocks/header.php") ?> <!-- СЕРЕДИНА --> <tr> <?php include("blocks/kontent.php") ?></tr> </table> <!-- COPYRIGHT --> <?php include("blocks/footer.php") ?> </body> </html> block\videolessons.php: PHP: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><title>Видео</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <meta name="description" content=" "> <meta name="keywords" content=" "> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body class="marginpadding"> <!-- ШАПКА --> <table class="bordur" width="100%"> <?php include("blocks/header.php") ?> <!-- СЕРЕДИНА --> <tr> <?php include("blocks/kontent.php") ?></tr> </table> <!-- COPYRIGHT --> <?php include("blocks/footer.php") ?> </body> </html>
Файл index.php Код (Text): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><title>Видео</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body class="marginpadding"> <!-- ШАПКА --> <table class="bordur" width="100%"> <?php include("blocks\header.php") ?> <!-- СЕРЕДИНА --> <tr> <?php include("blocks\kontent.php") ?></tr> </table> <!-- COPYRIGHT --> <?php include("blocks\footer.php") ?> </body> </html> Файл content.php Код (Text): <td class="d ikonka punkt_menu"> <img class="block" src="img/videoyroki.png" > <a href="blocks\videolessons.php">JAVASCRIPT</a> <a href="#">Пунтк 2</a> <a href="#">Пункт 3</a> <a href="#">Пункт 4</a> <a href="#">Пункт 5</a></td> <td valign="top" style="border-bottom:0px;"> </td> <td class="d ikonka punkt_menu"> <img class="block" src="img/videoyroki.png" > <a href="blocks\videolessons.php"">Пунтк 1</a> <a href="videolessons.php">Пунтк 2</a> <a href="#">Пункт 3</a> <a href="#">Пункт 4</a> <a href="#">Пункт 5</a> </td> Файл videolessons.php Код (Text): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><title>Видео</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <meta name="description" content=" "> <meta name="keywords" content=" "> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body class="marginpadding"> <!-- ШАПКА --> <table class="bordur" width="100%"> <?php include("blocks\header.php") ?> <!-- СЕРЕДИНА --> <tr> <?php include("blocks\kontent.php") ?></tr> </table> <!-- COPYRIGHT --> <?php include("blocks\footer.php") ?> </body> </html> Не работает всё равно
Файл индекс лежит в папке www, а в папке www находиться папка blocks в которой лежит файл videoyroki.php. Я пытаюсь сослаться от файла index.php на папку blocks в которой лежит videoyroki.php