I want to know any algorithms or php code for working out keyword competition. The keyword can be used multiple sites per website and on multiple websites. I want to know how its ranking can be worked out.
Thanks
I want to know any algorithms or php code for working out keyword competition. The keyword can be used multiple sites per website and on multiple websites. I want to know how its ranking can be worked out.
Thanks
You want a search engine? That's a pretty ambitious task. Quite a lot to ask over a volunteer driven PHP thread. Since I'm a nice guy, I'll give you the Regex for free, but you'll have to do some digging to build that search engine you want.
/<title>([^<])*</title>/gi
If you really are serious about the SE, try starting with this article from O'Rilley.
Example #2 What get_meta_tags() returns (taken from the manual)
<?php
// Assuming the above tags are at www.example.com
$tags = get_meta_tags('http://www.example.com/');
// Notice how the keys are all lowercase now, and
// how . was replaced by _ in the key.
echo $tags['author']; // name
echo $tags['keywords']; // php documentation
echo $tags['description']; // a php manual
echo $tags['geo_position']; // 49.33;-86.59
?>