here is one example ,I got this code from hotscripts.
<?
$GrabURL = "http://something.com/test.html"; //- Complete URL of the page your grabbing from!
$GrabStart = '<body>'; //- HTML Code To Start Grab. Must Be A Unique Bit Of Code!
$GrabEnd = '</body>'; //- HTML Code To End Grab. Must Be A Unique Bit Of Code!
$OpenFile = fopen("$GrabURL", "r");
if(!$OpenFile)die("Could not load data");
$RetrieveFile = fread($OpenFile, 20000); //- Reduce This To Save Memory
$GrabData = eregi("$GrabStart(.*)$GrabEnd", $RetrieveFile, $DataPrint);
$DataPrint[1] = str_replace("am", "AM", $DataPrint[1]); // replace word am to AM
fclose($OpenFile);//file close
echo "$DataPrint[1]";
?>
Any other way..so I can learn something ..