$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); $output = " 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) { $output .= ""; $output .= "".htmlentities($line['guid'])."\n"; $output .= "".htmlentities($line['title'])."\n"; $output .= "".htmlentities($line['link'])."\n"; $output .= "".htmlentities(strip_tags($line['description']))."\n"; $output .= "".htmlentities($line['pubdate'])."\n"; $output .= "\n"; } $output .= ""; echo $output; ?>