| 
<?php
 require('get_google_image.php');
 
 if(IsSet($_GET['title']))
 {
 $google_image = new get_google_image_class;
 $google_image->destination = '.'; // directory to save the images
 $google_image->limit = 10; // limit the number of images, 0 for random
 $google_image->display = true; // output images to the page
 $google_image->GetImage($_GET['title']);
 echo '<p>Retrieved images: '.$google_image->retrieved.'</p>';
 }
 else
 echo '<p>Pass the title in the URL parameter like <a
 href="?title=php">php</a>';
 
 ?>
 |