All of the implementation details are up to you. The class just does the work. Here is a sample page that I put together to use that class:
<?php
include "./Browser.php";
if (!isset($BROWSER_PAGE)) {
$BROWSER_PAGE = "http://"
. $HTTP_SERVER_VARS["HTTP_HOST"]
. $HTTP_SERVER_VARS["REQUEST_URI"];
}
$b = New Browser($BROWSER_PAGE, 0);
$html = $b->getHTML();
print "<table border=\"0\" width=\"100%\">\n";
print "<tr width=\"100%\">\n";
print "<td align=\"center\" width=\"100%\">\n";
// Header section that holds the url reader
print "<h3>Browsing: ".$b->getPage()."</h3>\n";
print "<form action=\"$PHP_SELF\" method=\"POST\">\n";
print "<input type=\"text\" name=\"BROWSER_PAGE\" ";
print "size=\"60\">\n";
print "<input type=\"submit\" name=\"Get Page\" value=\"Get Page\">\n";
print "</form>\n";
print "\n<hr>\n";
print "</td>\n";
print "</tr>";
print "<tr width=\"100%\">\n";
print "<td width=\"100%\">\n";
print "\n<!---------------------------";
print "Page Starts Here----------------------------->\n";
// Retrieved Page Section
print htmlentities($html);
print "\n<!----------------------------";
print "Page Ends Here----------------------------->\n";
print "</td>\n";
print "</tr>\n";
print "</table>\n";