Machs am besten so:
$path = $_SERVER[REQUEST_URI];
if ($path=="/index.php")
echo '<meta name="keywords" content="Meta-Tag, Metadaten, Metainformationen, Suchmaschinen" />';
elseif ($path=="/kontakt.php")
echo '<meta name="keywords" content="Meta-Tag, Metadaten, Metainformationen, Suchmaschinen"...