$interval) ) { // cache file doesn't exist, or is old, so refresh it $cache_rss = file_get_contents($feed); if (!$cache_rss) { // we didn't get anything back from twitter echo ""; } else { // we got good results from twitter echo ""; $cache_static = fopen($cache_file, 'wb'); fwrite($cache_static, serialize($cache_rss)); fclose($cache_static); } // read from the cache file $rss = @unserialize(file_get_contents($cache_file)); } else { // cache file is fresh enough, so read from it echo ""; $rss = @unserialize(file_get_contents($cache_file)); } // clean up and output the twitter feed $feed = str_replace("&", "&", $rss); $feed = str_replace("<", "<", $feed); $feed = str_replace(">", ">", $feed); $clean = explode("", $feed); $clean = str_replace(""", "'", $clean); $clean = str_replace("'", "'", $clean); $amount = count($clean) - 1; if ($amount) { // are there any tweets? for ($i = 1; $i <= $amount; $i++) { $entry_close = explode("", $clean[$i]); $clean_content_1 = explode("", $entry_close[0]); $clean_content = explode("", $clean_content_1[1]); $clean_name_2 = explode("", $entry_close[0]); $clean_name_1 = explode("(", $clean_name_2[1]); $clean_name = explode(")", $clean_name_1[1]); $clean_user = explode(" (", $clean_name_2[1]); $clean_lower_user = strtolower($clean_user[0]); $clean_uri_1 = explode("", $entry_close[0]); $clean_uri = explode("", $clean_uri_1[1]); $clean_time_1 = explode("", $entry_close[0]); $clean_time = explode("", $clean_time_1[1]); $unix_time = strtotime($clean_time[0]); ?> Something Must Have Gone Wrong...