Forum Moderators: coopster

Message Too Old, No Replies

Dynamic meta tags - on page load

Dynamic meta tags

         

saghir

12:45 pm on Oct 11, 2004 (gmt 0)

10+ Year Member



Dynamic Meta Tags and page Title
Hi i'm designing a new site and i don't want to edit Meta Tags and page Title on each page, I'm thinking of using php and sql to do that.

This is how i'm thinking of doing it

makeing a table in mysql fields pagename,metakeywords,description,title, etc

then just put some code on top of each page to get this info depending on the page the browser is loading.

Is that a good way of doing it?

I got a question regarding this way, How do i get the page name that is being loaded?

Any other ideas?

dreamcatcher

1:38 pm on Oct 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think you should be looking at preg_match for your title. I`m not really up on regex though, sorry.

Also, look at the get_meta_tags function for your meta information:

[uk.php.net...]