([^`]*?)<\/div>/", $data, $matches); // Begin feed header ("Content-Type: text/xml; charset=ISO-8859-1"); echo "\n"; ?> digg digg http://www.digg.com en-us ([^`]*?)<\/h3>/", $match, $temp); $title = $temp['1']; $title = strip_tags($title); $title = trim($title); preg_match ("//", $match, $temp); $diggLink = $temp['1']; $diggLink = trim($diggLink); // Second, get url preg_match ("//", $match, $temp); $url = $temp['1']; $url = trim($url); // Third, get text preg_match ("/

([^'\"].*?)<\/p>/", $match, $temp); $text = $temp['1']; $text = trim($text); // Fourth, and finally, get author preg_match ("/submitted by([^`]*?)<\/a>/", $match, $temp); $author = $temp['1']; $author = trim($author); // 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\tDigg Link\"\n"; echo " ]]>\n"; echo "\t\t\t" . strip_tags($author) . "\n"; echo "\t\t\n"; } ?>