Ritz commented on a Page, Dynamic Title and Meta Tags  -  Sep 03, 2010

here is the meta_tags.txt

index.php|title 1|meta tags|meta description
aboutus.php|title 2|meta tags|meta description

and the get_meta.php is same what you provided. In index.php i placed the same here it is:

<?php include("get_meta.php"); ?>

<?php print $title; ?>

Thing is the error is undefined variable errors..

This portion is not parsing:

while($data = fgetcsv($meta_db, 9000, '|'))
{
if($data[0] == $page)
{
$title = $data[1];
$meta_keywords = $data[2];
$meta_description = $data[3];
}
}

something is wrong with the braces.. I don't know as I'm a newbie in php.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.