it's a very easy task:
PHP Code:
<?php
$url = "http://www.schuelervz.net";
$version = phpversion();
function a_strstr($haystack, $needle, $before_needle = false) {
if(($pos = strpos($haystack, $needle)) === false) { return false; }
if($before_needle) { return substr($haystack, 0, $pos + strlen($needle)); }
return substr($haystack,$pos);
}
$pat1 = '<div id="LeftsideBox">
<div>
<p>';
$pat2 = '<p>';
$pat3 = '</p> </div>
</div>
</div>
<br class="Clear-The-Evil-Float" />';
$pat4 = '</p>';
$content = file_get_contents($url);
$content = a_strstr($content, $pat1, false);
$content = a_strstr($content, $pat2, false);
$content = substr($content, 3);
$content = a_strstr($content, $pat3, true);
$content = a_strstr($content, $pat4, true);
$content = substr($content, 0, strlen($content)-4);
echo $content;
?>
If you have PHP 5.3.0 installed you can delete the function declaration and have to rename a_strstr to strstr. Because PHP 5.3.0 brings the befor/after flag for this function and so my additional function is noch needed.