Forum Moderators: coopster

Message Too Old, No Replies

PHP to Generate Keywords and Description

Script that generates keywords and description based on page contents

         

Dreamcontest

11:01 pm on Mar 26, 2008 (gmt 0)

10+ Year Member



Hi there,

I have recently purchased a directory script that generates meta keywords and meta descriptions for each page of the site based on some php code.

On the pages of the directory i have to enter the keywords and description into the "ad" so thats where it comes from. This works great for SEO.

The problem is there is no place for these keywords or description on the index page of the site.

I need some help with the code and where to start... i assume something like if = nothing then display default keywords and default description...

I hope ive explained this correctly as im not a PHP programmer.... but would love some help!

jatar_k

1:53 pm on Mar 28, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld Dreamcontest,

does it use a database? If so you could pull the data from there and then echo it somewhere within the page.

this thread should get you started
[webmasterworld.com...]

henry0

1:59 pm on Mar 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it could also be that you did not find the correct "index"
I mean the index might be a combo of a php script calling an output formating template for the index and also calling for something like language/keywords.inc.tpl