SysChat is a free online computer support community. Ask questions, share resources, contribute knowledge and discuss technology. Join our growing community to access all features. Register Now!

SysChat » Software Support » Development » Where to put meta-tag?


Support help and discuss software development and programming.

LinkBack Thread Tools
  #1 (permalink)  
Old 12-25-2005, 07:16 AM
pairbrother pairbrother is offline
Join Date: Dec 2005
Posts: 40
pairbrother is on a distinguished road

Default Where to put meta-tag?

Hi all, need help.

I came accross an issue in php regarding meta tags..

Let's say I created a header file, footer file and use it for every pages.. where should I put the meta-tag?

If I put it at header file, all the pages from the site will have the same meta-tag. What can I do to have a different meta-tag without sacrificing the header file?

Reply With Quote
  #2 (permalink)  
Old 03-09-2006, 09:12 PM
William_Wilson's Avatar
William_Wilson William_Wilson is offline
Join Date: Mar 2006
Location: Canada
Posts: 973
William_Wilson has a spectacular aura aboutWilliam_Wilson has a spectacular aura aboutWilliam_Wilson has a spectacular aura about


I'm assuming you've made the common mistake of writting your php code within your webpage file, or trying to put the meta-tag within the php code.
*I'm no pro w/ php, but this one i have covered
Instead use a standard start and include the meta tag as you would in any html file. This would allow you to write the meta tag individually for each page, then use an include statement to add your header/footer files to it as well. (eg: include( 'header.php' ); )

*Although there is nothing technically wrong with not doing it this way, it is more 'proper' as far as programming style
good luck!


</Dream In Code>
-William. § (marvin_gohan)
Reply With Quote

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are on

» Ads

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54