rendered paste body<?php
$tmp = file("http://thepancakeman.wordpress.com/");
foreach ($tmp as $t) {
if (stripos($t,"<h2><a href=\"http://thepancakeman.wordpress.com/") !== false) {
$ta = strip_tags($t);
}
if ($des) {
$des .= strip_tags($t);
}
if (stripos($t,"<div class='snap_preview'>") !== false) {
$des .= strip_tags($t);
}
if (stripos($t,"</div>") !== false && isset($des)) {
$des .= strip_tags($t);
$array[] = array("description" => trim($des),"title" => $ta);
unset($des);
}
}
print_r($array);
?>