Нужно чтобы в страницу index.php помещался html код другой страницы в другой папке. Но вроде все правильно сделал и не работает! index.php PHP: <?php $name=file_get_contents("admin/designid.txt"); $design=file_get_contents("admin/design/1/index.php"); echo $design; ?> admin/design/1/index.php HTML: <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html> <head> <meta http-equiv='content-type' content='text/html; charset=windows-1251' /> <title><?php $name=file_get_contents('admin/blogname.txt'); echo $name; ?></title> <link rel='stylesheet' type='text/css' href='default.css' /> </head> <body> <div id=header> <div id=header_inner> <h1><?php $name=file_get_contents('admin/blogname.txt'); echo '<span>'.$name.'</span>'; ?></h1> </div> </div> <div id=main> <div id=col> <div id=content> <p><?php $c=file_get_content('admin/page/content.txt'); echo $c; ?></p> </div> </div> </div> <div id=footer> <p>© <?php $name=file_get_contents('admin/blogname.txt'); echo $name; ?></p> </div> </body> </html> HELP!
Вот что оно мне выводит с include() --- Код (Text): '.$name.''; ?> © Прикольно? А должно выводить полноценный дизайн!