Zacząłem CMSa i teraz mam problem...
Jak zdefiniuje zmienną w pliku config.php np:
$zmienna = "tytul strony";
to wtedy includuje to do index.php:
<? include("config.php"); ?>
chcac wywołac zmienne robie tak:
Kod
<? include("config.php"); ?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2"/>
<meta name="description" content="<? $opis; ?>" />
<meta name="keywords" content="buakaw, pramuk, buakaw pramuk, por pramuk gym, gym, muaythai, muay, thai, tony jaa, panom yeerum, k-1, max world max, k1, fight, forum, walka, walki, ring, ufc" />
<meta name="author" content="buakaw.xvo.pl"/>
<link rel="stylesheet" type="text/css" href="style.css" media="screen"/>
<title><? $tytul; ?></title>
</head>
<body>
</body>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2"/>
<meta name="description" content="<? $opis; ?>" />
<meta name="keywords" content="buakaw, pramuk, buakaw pramuk, por pramuk gym, gym, muaythai, muay, thai, tony jaa, panom yeerum, k-1, max world max, k1, fight, forum, walka, walki, ring, ufc" />
<meta name="author" content="buakaw.xvo.pl"/>
<link rel="stylesheet" type="text/css" href="style.css" media="screen"/>
<title><? $tytul; ?></title>
</head>
<body>
</body>
</html>
Za cholere nie działa.. Co mogę zrobić ? żeby działało ?
Pozdrawiam!
Brandon Lee.