Transfagarasan Posted December 27, 2009 Share Posted December 27, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/186434-optimization-codes/ Share on other sites More sharing options...
Adam Posted December 27, 2009 Share Posted December 27, 2009 Not sure what that language is based on but, makes no sense to me. Could you perhaps simplify the problem a little more, just explaining what it is you're trying to do? Quote Link to comment https://forums.phpfreaks.com/topic/186434-optimization-codes/#findComment-984514 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.