$line[0], 'title' => $line[1], 'description' => $line[2], 'pubdate' => $pubdate, 'link' => $line[4]); } fclose($fh); //print_r($return); $fileTimestamp = filemtime($newsFile); $buildDate = date($dateFormat,$fileTimestamp); // I wish for pubDate to change once every day, so if you refresh there is no change. $today = date('Y-m-d'); $tt = strtotime($today); $pubDate = date($dateFormat,$today); echo (" Engineering Ideas News http://www.engidea.com/ Notizie/Blog Engineering Ideas it-it $pubDate $buildDate http://blogs.law.harvard.edu/tech/rss rss@engidea.com rss@engidea.com "); foreach ($return as $line) { echo (""); echo ("".quote($line['guid'])."\n"); echo ("".quote($line['title'])."\n"); echo ("".quote($line['link'])."\n"); echo ("".quote($line['description'])."\n"); echo ("".quote($line['pubdate'])."\n"); echo ("\n"); } echo(""); ?>