Jump to content

Recommended Posts

Hello!

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

<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] (first two common words followed by one common expression and again 2 words so on)

 

Sorry for my poor english.

I hope you'll understand what I'm trying to say.

Link to comment
https://forums.phpfreaks.com/topic/186434-optimization-codes/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.