In order to get the data within the <BODY> tag, you could load the entire file into an array, join the array with a space, then use a regular expression to pull the data and enclose the whole thing in a loop to read the files in the directory.
<?php
$dir = 'home/rich/public_html';
$dirhandle = opendir( $dir );
while( $file = readdir( $dirhandle ))
{
$filedata = file( "$dir/$file" );
$filedata = join( '', $filedata );
$body = preg_split( '/<\/*body>/i', $filedata );
print 'File ' . $file . ' has a body of:\n" . $body[1]. "\n------------\n";
}
?>
Hope this helps!
-Rich