 |
Если вы впервые на нашем форуме - ознакомьтесь с правилами
|
|
Добрый день!
Недавно начал изучать PHP и нашёл простенький генератор страниц. Воткнул его в свой первый сайт и всё прекрасно работало. Пару дней назад этот генератор перестал работать и начал выдавать ошибки
Notice: Undefined variable: content in x:homelocalhostwwwqweindex.php on line 4
Warning: include(.html) [function.include]: failed to open stream: No such file or directory in x:homelocalhostwwwqweindex.php on line 4
Warning: include() [function.include]: Failed opening '.html' for inclusion (include_path='.;/usr/local/php5/PEAR') in x:homelocalhostwwwqweindex.php on line 4
вот скрипт генератора:
---------------
index.php
---------------
<?php
include("site_init.php");
show_header();
include("$content.html");
show_footer();
?>
<a href = "index.php?content=about">Static Page Name</a></br>
<a href = "index.php?content=advert_info">Advertising Information</a></br>
<a href = "index.php?content=contact">Contact Us</a></br>
---------------
site_init.php
---------------
<?
function show_header()
{
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Untitled Document</title>
</head>
<body>
<?
}
function show_footer()
{
?>
</body>
</html>
<?
}
?>
Продскажите пожалуйста если будет время.
|
|
9 августа 2007, 10:32
|
|
Это сообщение было просмотрено: 6021 раз(а)
 |
 |
 |
 |
генератор страниц | 6021 |
Oleg | 09.08.07 10:32 | |  ммм | 2889 |
ak1nok | 21.08.07 02:09 | |
|
 |