S
shailen
Guest
Hi everyone,
I want to include file in my <head> </head> since these will change dynamically as per the pages (eg: Home, About Us, ... )
<head>
<?php include "headers.php" ;?> // that will include the keywords, meta tags ... and also the IMPORTANT the "title tag"
</head>
The template is a simple layout with a header part, left menu module, content page (dynamic), + footer.
Since i'm quite new to PHP ... how can this be done pls?
Im using actually this codes :
<?php $thisPage="About Us"; ?>
<html>
<head>
<title>My Website Name <?php if ($thisPage!="")
echo " | $thisPage"; ?>
</title>
<meta name="title" content="My Website Name<?php
if ($thisPage!="") echo " | $thisPage"; ?>" />
<meta name="keywords" content="<?php if ($thisPage!="") echo "$thisPage, "; ?> My Website Name, keyword1, keyword2,keyword3" />
</head>
<body>
<h1><?php echo $thisPage; ?> </h1>
I want to include file in my <head> </head> since these will change dynamically as per the pages (eg: Home, About Us, ... )
<head>
<?php include "headers.php" ;?> // that will include the keywords, meta tags ... and also the IMPORTANT the "title tag"
</head>
The template is a simple layout with a header part, left menu module, content page (dynamic), + footer.
Since i'm quite new to PHP ... how can this be done pls?
Im using actually this codes :
<?php $thisPage="About Us"; ?>
<html>
<head>
<title>My Website Name <?php if ($thisPage!="")
echo " | $thisPage"; ?>
</title>
<meta name="title" content="My Website Name<?php
if ($thisPage!="") echo " | $thisPage"; ?>" />
<meta name="keywords" content="<?php if ($thisPage!="") echo "$thisPage, "; ?> My Website Name, keyword1, keyword2,keyword3" />
</head>
<body>
<h1><?php echo $thisPage; ?> </h1>