Cannnot open source directory
rss.xml not updated
no html files in source directory
rss.xml not updated
no title file in source directory
rss.xml not updated
Cannot open rss.xml file
rss.xml not updated
Cannot write header
"; exit(-1); } // scan inside of title file reset($fi); $start_main = false; $end_main=false; foreach ($fi as $a){ // pick up title and main link if(eregi("Cannot open $a[1] file
This file skipped
Creating $filename ... "; if(!($result = copy("main_wrapper.php", $filename))){ echo "Warning, cannot create $filename
\n"; } else{ echo " done.\n"; } } // pubdate tag getting from filename $year = substr($a[1],0,4); $month = substr($a[1],4,2); $day = substr($a[1],6,2); $hour = substr($a[1],8,2); $time = mktime($hour, 0, 0, $month, $day, $year); $pubdate = date('D, d M Y H:i:s O', $time); fwrite($fo, "", $a)){ $start_firstp = true; } elseif($start_firstp && eregi("
", $a)){ $end_main = true; fwrite($fo, "