PHP Classes

File: Implementation

Recommend this page to a friend!
  Classes of Aziz S. Hussain   Email Scraper   Implementation   Download  
File: Implementation
Role: Example script
Content type: text/plain
Description: Implementation of class
Class: Email Scraper
Crawl pages and scrape e-mail addresses into MySQL
Author: By
Last change: Added include.
Date: 13 years ago
Size: 851 bytes


Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
= 'root';
$DB_HOST = 'localhost';
$DB_NAME = 'scrape';
$dbc = mysql_connect ($DB_HOST, $DB_USER, $DB_PASSWORD) or $error = mysql_error();
mysql_select_db($DB_NAME) or $error = mysql_error();
mysql_query("SET NAMES `utf8`") or $error = mysql_error();
$error){ die($error);}


$new = new scraper;
// Start Path can be empty, which will be extracted from the start URL