Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Diego Garrido de Almeida  >  Google File Finder  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Google File Finder
Search for files in sites using Google
Author: By
Last change: Example change
Date: 4 years ago
Size: 777 bytes
 

Contents

Class file image Download
<?
// by Diego Garrido de Almeida
// garridez@gmail.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($resulttrue).'</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($resulttrue).'</pre>';
} else {
   echo 
'Not found.';
}

?>