View unanswered posts | View active topics It is currently Sun Dec 17, 2017 2:54 pm



Reply to topic  [ 2 posts ] 
 Managing Meta Tags 
Author Message
Junior Member

Joined: Wed Mar 24, 2004 9:05 pm
Posts: 5
Location: Canton, NY
Post 
I have recently begun designing dynamic pages with PHP. However, I still have to manually key in unique meta tags for each page. Is there a way to dynamically generate unique meta keywords for each page?

Thanks in advance!

Harvey Ramer

Design Delineations
http://www.desdel.com


Fri Apr 02, 2004 6:05 am
Report this post
Profile WWW
Junior Member

Joined: Wed Mar 24, 2004 9:05 pm
Posts: 5
Location: Canton, NY
Post 
For anyone interested in this topic, there is a way to add keywords for each page. It is not automated. It would be great if there was a way to code PHP to pull keywords automatically from the content areas of a web page (actually, I assume there is) but the manual way will work for now.

In the php document, place this information:
Code:
<?php
$pgKeywords="really cool stuff,information,important site";


In the PHP sitewide header or wherever you include the HEAD tag, place this info:

Code:
<meta name="keywords" content="<?php echo $pgKeywords ?>">


Simple, efficient, and a done deal.

Harvey Ramer
http://www.desdel.com


Mon May 17, 2004 10:56 am
Report this post
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.