([^`]*?)<\/div>/", $data, $matches); // Begin feed header ("Content-Type: text/xml; charset=ISO-8859-1"); echo "\n"; ?> Original Content -- A Gail Gauthier Blog -- Latest Content The latest content from Gail Gauthier (http://www.gailgauthier.com/blogger.html), screen scraped! http://www.gailgauthier.com/blogger.html en-us ([^`]*?)<\/h3>/", $match, $temp); $title = $temp['1']; $title = strip_tags($title); $title = trim($title); // Second, get url preg_match ("/posted by gail at /", $match, $temp); $url = $temp['1']; $url = trim($url); // Third, get text preg_match ("/<\/h3>([^`]*?)/", $match, $temp); $text = $temp['1']; $text = trim($text); $text = str_replace('
', '
', $text); // Fourth, and finally, get author preg_match ("/By ([^`]*?)<\/span>/", $match, $temp); $author = $temp['1']; $author = trim($author); if (!($title == '') && !($text == '')) { // Echo RSS XML echo "\n"; echo "\t\t\t" . strip_tags($title) . "\n"; echo "\t\t\t" . strip_tags($url) . "\n"; echo "\t\t\t" . strip_tags($text) . "\n"; echo "\t\t\t\n"; echo "\t\t\t" . "Gail Gauthier" . "\n"; echo "\t\t\n"; }//end if }//end foreach ?>
content=""; $ch = curl_init (); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_VERBOSE, 1); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_TIMEOUT, 60); $this->content = curl_exec ($ch); $http = $this->content; //print_r(curl_getinfo($ch)); //echo "\n\ncURL error number:" .curl_errno($ch); //echo "\n\ncURL error:" . curl_error($ch); curl_close ($ch); return $http; } ?>