Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-31-2003, 03:50 PM   PM User | #1
weronpc
Regular Coder

 
Join Date: Apr 2003
Location: Canada, Ontario, Mississauga
Posts: 312
Thanks: 0
Thanked 0 Times in 0 Posts
weronpc is an unknown quantity at this point
include page's meta tags

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,

Mike
weronpc is offline   Reply With Quote
Old 10-31-2003, 09:55 PM   PM User | #2
missing-score
Senior Coder


 
missing-score's Avatar
 
Join Date: Jan 2003
Location: UK
Posts: 2,194
Thanks: 0
Thanked 0 Times in 0 Posts
missing-score is on a distinguished road
you can use include() in includes. so you can include files within your includes.

eg:

Main Page (includes) -->

Sub Page (includes) -->

Meta tags page
missing-score is offline   Reply With Quote
Old 11-03-2003, 02:18 PM   PM User | #3
Dalziel
Regular Coder

 
Join Date: Nov 2002
Posts: 161
Thanks: 2
Thanked 0 Times in 0 Posts
Dalziel is an unknown quantity at this point
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
Dalziel is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:44 PM.


Advertisement
Log in to turn off these ads.