Eu merg pe urmatoare varianta:
in index.php am
Cod:
include 'functii.php';
include 'head.php';
Iar in head.php am urmatorul cod:
Cod:
<head>
<title><?php echo $titlu; ?></title>
<meta name="Description" content="<?php echo $descriere; ?>" />
<meta name="Keywords" content="<?php echo $keywords; ?>" />
<meta name="robots" content="index, all" />
<meta name="robots" content="index, follow" />
<meta name="rating" content="general" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="RO" />
<link href="favicon.ico" rel="shortcut icon" title="Icon" />
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
Iar in functii.php fac discutia pentru $titlu, $descriere si $keywords.
O metoda ar fi sa stochezi in baza de date informatiile pentru categorii si subcategorii si astfel le extragi usor