86400) { $handle = fopen($url, "rb"); if ($handle) { $fp = fopen("cache/googleplus.php","w"); fwrite($fp,"\n"); fclose($fp); fclose($handle); } } include 'cache/googleplus.php'; $xml = new SimpleXMLElement($xmlstr); /* For each node. */ foreach ($xml->channel->item as $item) { $id = explode('/',$item->guid); $vid = $id[count($id)-1]; $title = str_replace("'","\\'",stripslashes(urldecode($item->title))); $desc = str_replace("'","\\'",stripslashes(urldecode($item->description))); // process description $str = $desc; // link, pubDate echo "document.write('

".$title."

\\n');\n"; //echo "\n"; //echo "\n"; echo "document.write('
".str_replace("\n","",$desc)."
\\n');\n"; } ?>