<?php //the file what implemented the class EmailAgent include_once ("EmailAgent.inc.php"); $agent=new EmailAgent(); $agent->main("http://localhost/oop/extract_emails.html"); ?>