SysChat

SysChat (http://www.syschat.com/forum.php)
-   Development (http://www.syschat.com/software-support/development/)
-   -   Where to put meta-tag? (http://www.syschat.com/where-to-put-meta-tag-109.html)

pairbrother 12-25-2005 07:16 AM

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?

William_Wilson 03-09-2006 09:12 PM

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 :D
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!


All times are GMT -4. The time now is 05:47 PM.


Copyright © 2005-2013 SysChat.com


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