Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Dynamically give title for pages (http://www.go4expert.com/forums/dynamically-title-pages-t20189/)

rekha 25Nov2009 14:33

Dynamically give title for pages
 
Hi,

I want to give title dynamically for every pages.I have a header.php page where I put the title as follows,

<title><?php if (defined ('TITLE')) {
print TITLE;
}
?></title>

In every page I defined the title as

define ('TITLE', title goes here');

It is working fine for me.But I don't know whether it gets indexed or google will ignore it.Or Is there any better sloution to change the title dynamically.Pls help.

shabbir 25Nov2009 15:59

Re: Dynamically give title for pages
 
It does not matter to Google how you give the title and if your final HTML is fine Google should be fine.

rekha 25Nov2009 16:09

Re: Dynamically give title for pages
 
Oh ok.Thanks a lot

shabbir 25Nov2009 16:14

Re: Dynamically give title for pages
 
The pleasure is all mine.


All times are GMT +5.5. The time now is 16:49.