PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Karol Janyst  >  Spider website  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Spider website
Crawl a site and retrieve the the URL of all links
Author: By
Last change: Comments correct
Date: 8 years ago
Size: 627 bytes


Class file image Download
// include Spider class file

// create new Spider object
$spider = new Spider('<enter your website URL here>');

// allow files with extension *.txt being spidered

// and disable files with that extension

// set it to true if you want to see what is happening on the screen

// start spidering website

// all found and fetched links are in that variable
$links = $spider->all_links;

// print it out