PHP Classes

File: library/

Recommend this page to a friend!
  Classes of Diego Garrido de Almeida  >  Google File Finder  >  library/  >  Download  
File: library/
Role: Class source
Content type: text/plain
Description: FileSonic Example Class
Class: Google File Finder
Search for files in sites using Google
Author: By
Last change:
Date: 11 years ago
Size: 1,169 bytes


Class file image Download
// by Diego Garrido de Almeida

class FileSonic extends Surf{
         public function

         public function
$line = $this->getField($row);

$file = new stdClass();

// get name
preg_match_all('/Filename\:(.*?)(\.+[ ]|[ ]+\.)/', $line->nodeValue, $match);
$file->name = utf8_decode(($match[1][0]));

// get size
preg_match_all('/File size\:(.*?)(\.+[ ]|[ ]+\.)/', $line->nodeValue, $match);
$file->size = utf8_decode(($match[1][0]));

// get size
preg_match_all('/Description\:(.*?) (Share|High)/', $line->nodeValue, $match);
$file->description = utf8_decode(($match[1][0]));

// get link
$file->link = $row->getElementsByTagName('h3')->item(0)->getElementsByTagName('a')->item(0)->getAttribute('href');



For more information send a message to info at phpclasses dot org.