View Full Version : include page's meta tags

10-31-2003, 04:50 PM
I created my page using lots of include, the beginning of the page always include the header.php, side.php and footer.php

I want to insert some meta tags into the header.php

the problem is, I only have one header.php file to insert the meta tags.

for example, pages ram.php, monitor.php, case.php....
I want to have meta tags for ram, monitor and case.. but I don't know how to put them into the header.php seperately.

hope you know what I am talking about,

thank you,


10-31-2003, 10:55 PM
you can use include() in includes. so you can include files within your includes.


Main Page (includes) -->

Sub Page (includes) -->

Meta tags page

11-03-2003, 03:18 PM
You could put the meta tags into header.php and use variables in it (e.g. $description) and declare the variables on the page before the include() function is used, that way you would use the same include file and have a different output http://www.danleitch.co.uk/smileys/grin1.gif