PHP Classes
elePHPant
Icontem

File: example2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Trev Tune  >  PHP Search Engine Crawler  >  example2.php  >  Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: Get details about a url,eg text,page title,no. Of words and array of words
Class: PHP Search Engine Crawler
Crawl pages and extract links, images and metadata
Author: By
Last change: Updated deprecated functions
Date: 1 year ago
Size: 453 bytes
 

Contents

Class file image Download
<?php

/*Package search engine crawler
*
*author Trev Tune */

include 'crawler.class.php';

$crawler=new crawler("http://www.phpclasses.org");


$crawler->getcontent();

$data=$crawler->data;
 
echo
"Crawling " . $crawler->url "<br/>";

echo
"Page title : " . $data['title'] . "<br/> NO. of words " .

$data['wordcount'] .
" <br/> No. Of unique words " . $data['uniquewords'] .
"<br/>Download speed " .
$data['time']);

?>