I have a script that spiders a news site and grabs the html and displays it. Yes, I do have permission for this! I want to be able to strip everything, outside of the <body></body> tags and only display what is inside the body tags. below is the current code I'm using...
$url = "http://www.genericmetalnews.com/";
$fp = fopen($url, 'rb');
while(($data = fgets($fp, 1024)) !== false)