Location: PHPKode > scripts > Google File Finder > example.php
<?
// by Diego Garrido de Almeida
// hide@address.com

require_once('library/class.surf.php');
require_once('library/class.surf.megaupload.php');
require_once('library/class.surf.filesonic.php');

echo '<h1>MegaUpload.com Search: Michael Jackson - Human Nature</h1>';
$mp = new MegaUpload('Michael Jackson Human Nature mp3');
$result = $mp->performSearch(1);
if($result !== false){ // page 1
   echo '<pre>'.print_r($result, true).'</pre>';
} else {
   echo 'Not found.';
}

echo '<hr />';

echo '<h1>FileSonic.com Search: The Big Bang Theory</h1>';
$fs = new FileSonic('The Big Bang Theory');
$result = $fs->performSearch(1);
if($result !== false){ // page 1
   echo '<pre>'.print_r($result, true).'</pre>';
} else {
   echo 'Not found.';
}

?>
Return current item: Google File Finder