Sunday, 19 May 2019

Suggestion Word

Category : PHP Script
Pernah donk pake google, trus pernah salah ketik ga? sewaktu misalnya kita ketik "citra land" si google pasti akan memberikan kita sugggestion word, Did you mean "citraland"?. nah ini adalah script yang di gunakan untuk mengambil suggestion word dari google. aku memberikan 2 versi. satu lagi di ambil dari properspell.com, pada kenyataannya yang properspell.com harusnya lebih cepat karena cuma ambil suggestion word doank, yang google sekalian cariin hasil buat keyword yang kita masukin,  untuk demo lihat disini :


ini source codeny, semoga berguna

<?

    $keyword = urlencode("citra land mall");
   
    $t1 = microtime(true);
    $url = "http://www.google.com.sg/search?hl=en&q=$keyword
&btnG=Google+Search&meta=";
    $content = file_get_contents($url);
    if ($content)
    {
        preg_match('/<p><font color=#cc0000 class=p>Did you mean to search for: <\/font><a href=(.*) class=p>(.*)<\/a>&nbsp;&nbsp;<br>/i',$content,$match);
        if ($match)
        {
            echo $match[2];
        }
    }
   
    echo "<br>".(microtime(true)-$t1);
   
    echo "<hr>";
    $t1 = microtime(true);
    $url = "http://www.properspell.com/spellcheck/v5.0/check.php?id=
DEMOKEY1&term=$keyword";
    $content = file_get_contents($url);
    if ($content)
    {
        preg_match("/__lucien.display\('(.*)', '(.*)', '(.*)'\);/i",$content,$match);
        if ($match)
        {
            echo $match[2];
        }
    }
   
    echo "<br>".(microtime(true)-$t1);
?>

Like this articles? share it with Share With FacebookFacebook
<< Back
4 Comment | 2735 hits | Posted by Callrid at 2007-09-07 14:07:32

Related Read

Add Comment
Name :
Web :
Comment :

Code :
 

Other Source
A Practical Guide On Complete Multivitamins
Many of us have a hard time deciding what the best multivitamin is for us. This is completely confusing and difficult especially when there are so many bottles to scan in the various aisles of the...

High Blood Pressure
The nutritional benefits of low-fat dairy products are well known for ages. The latest studies show that the ingredients of dairy products - some combination of milk proteins are effective and...

Welcome To Mimicwatch.com - Quality Luxury Replica Vacheron Constantin Watches At Affordable Price
When entering our online store at Mimicwatch.com, you are given an unique opportunity to choose among a wide selection of famous Replica Watches and Replica handbags such as Replica Vacheron...

Ebook Marketing Tips
A great way to have a product to sell on the Internet is an e-book which almost anyone can create. There is no longer any need for delaying with the simple process detailed below. If you are afraid...

Tactical Asset Marketing
Asset Management Different Asset Allocation Strategies Asset marketing is the process of dividing a portfolio into major asset categories such as cash, stocks, real estate, or...

Shout Box
2019-04-10 21:32:43 
StivenSortPat
http://newseastwest.com/was-mukesh-ambanis-son-akash-ambani-driving-the-sports-car-that-killed-two-people/comment-page-1/#comment-338201
2019-02-26 22:20:45 
Playavmk

2016-11-24 08:56:05 
Pembicara Internet M
Website yagn bagus
2016-11-24 08:40:45 
Produsen Mukena
Good Website
2016-04-05 20:44:45 
Belanja Alat ukur
Belanja Alat ukur dan Thermal Camera Hanya di dutapersada.co.id

Site Partners


Search Articles

Web Statistic
No Visitor :
3254656
Today Visitor :
200
Online Visitor :
1
what is my ip address? Page Rank Checker

< May 2019 >
SMTWTFS
   1234
567891011
12131415161718
19202122232425
262728293031

Increase Page Rank

Last Modified 08-November-2011, 23:21:04 pm
callrid.com Created 2006-2012 by Anton Ongsono
All rights reserved