PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of kai   Blue Crawler   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: example
Class: Blue Crawler
Crawl and retrieve links of Web pages
Author: By
Last change:
Date: 14 years ago
Size: 456 bytes
 

Contents

Class file image Download
<?
include_once("Crawler.php");


$c = new Crawler("www.articles.bluemooninnovations.com");

$links=$c->getAllLinks();

for (
$r=0;$r<count($links);$r++)
    echo
$links[$r]."<br>";

?>
<br>
############################################################
<br>
<?

$c
= new Crawler("www.articles.bluemooninnovations.com","owned by Blue Moon Innovations");
?>
The phrase "owned by Blue Moon Innovations" was found on
<?
echo $c->thelink;

?>