Hi,
I imagine you would get the page to be translated input from a form. Then take the address and open it with fopen() and grab it's contents. Then do your parsing routine and simply echo the result to the browser. Something like:
<?
// Assume $page contains the address of the page to translate
$fp = fopen($page,"r");
if( !$fp ) {
echo "Error opening page";
exit();
}
while( !feof($fp) ) {
$content .= fgets($fp,4096);
}
// Do your parsing routine on $content here
echo $content;
?>
Hope that helps,
Louis