<?php
  include "Snoopy.class.php";
  $snoopy = new Snoopy;
  $requestedWord = $_REQUEST["word"];
  $googleURL =
    "http://www.google.com/complete/search?js=true&qu=" .$requestedWord;
  $snoopy->fetchtext($googleURL);
  print $snoopy->results;
?>
