예제 #1
0
public function main ($url) {
//this method uses to launch the class object
$agent=new EmailAgent();
$this->geturl=$url;
$data=$agent->getData($this->geturl);
$agent->emailGrabber($data);

}
예제 #2
0
<?php

//the file what implemented the class EmailAgent

include_once ("EmailAgent.inc.php");

$agent=new EmailAgent();

$agent->main("http://localhost/oop/extract_emails.html");




?>