I developed a PHP site that gives customer's the option to put his own "seo tags" on any page of the site, whether that page is an article page or the main page.
For example to put his tags on http :// www. site .com/Florida-football-coach-Meyers-resigns.html, he should create a file named Florida-football-coach-Meyers-resigns.txt in the "SEO" folder on the server. The script will search into the seo folder for a file named like the page that is going to be displayed and if there is one, it will display the content of the file between the tags <head> and </ head>.
But now, the customer has found another way to control these tags.
For example: he wants the script to establish the most relevant words. In the "seo tags" file on the server he wants just to specify to the script that he wants the first 5 most common words in the page that is going to be displayed. (in this case he proposed the code: [words4] => first 4 most common words. But he can also use [words+] case in which all words will be displayed in descending order of number of appearances )
His proposed codes then become increasingly complex (a code for most common phrases or combinations of several codes) and things got complicated.
Can you give me any idea that can help me developing this feature?
Sample file with tags for page Florida-football-coach-Meyers-resigns.html
Code: Select all
<title>Florida football coach Meyers resigns</ title>
<META Name="keywords" CONTENT="[expressions5@2-3]">
<META Name="description" CONTENT="[2/1][words+][expressions+@2-3]">
* [expressions5@2-3] means first 5 most common phrases of 2 or 3 words
* [2/1][words+][expressions+@2-3] means a combination of the most common words and common phrases of 2 or 3 words displayed in the order [2 / 1] ( two common words followed by one common expression and so on)I hope you'll understand what I'm trying to say.