Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Meta Keyword Generator
Old 06-29-2008, 03:52 PM Meta Keyword Generator
Junior Talker

Posts: 2
Trades: 0
Hello you PHP Community! I am looking to make an automatic meta keyword generator based on an array of phrases. It is more my site that is under construction, PHPMine. Go to the "Q and A" section and you'll see a series of questions there, five in total. right now the system simply grabs all the words there, filters though common words, and then spits out the words as keywords. I would like some advice on how to set it up in this way:
  • puts all the words in an array and counts their frequency
  • creates an array of two words phrases and counts their frequency
  • does the same for 3 word phrases
  • spits out the top 25 keywords from the array generated
maybe someone has already cooked up this nasty script. thanks in advance guys!
phpmine is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-29-2008, 07:07 PM Re: Meta Keyword Generator
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
I made something like this a while back, here is theory/basic code behind it.

PHP Code:
// Grab the html
$site =  file_get_contents(URL to FILE);

// take out the html - so text only now.
$words strip_tags($site);

// explode on the spaces
$words explode(" "$words );

// count.
foreach($words as $word){
if(
$keywords[$word] == true){
$keywords[$word] = $keywords[$word] + 1;
} else {
$keywords[$word] = 1;
}

__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE

Last edited by rogem002; 06-29-2008 at 07:10 PM..
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 06-29-2008, 08:52 PM Re: Meta Keyword Generator
Junior Talker

Posts: 2
Trades: 0
but this does not calculate phrases
phpmine is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Meta Keyword Generator
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11356 seconds with 12 queries