Updat the news section on your site easily without using a database.
Download
View Source (print view)
Rating : 4.7
Views : 934
<?php
function Show($filename, $author) {
$filedate = filemtime("$filename");
print "<table width=80% align=center border=1 cellpadding=2 bordercolor=#000000><tr width=100% align=center><td bordercolor=#FF0000><font face=Arial color=#FFFFFF>";
print date("r", $filedate);
print "</font></td></tr></table><table width=80% align=center><tr><td>";
readfile("$filename");
print "<p align=right><font color=#FFFFFF face=Arial>$author</font><br><br></p></td></tr></table>";
}
$newsdir = opendir("items/");
while (false !== ($file = readdir($newsdir))) {
$newsitems[] = $file;
}
closedir($newsdir);
rsort($newsitems);
while (list($key, $val) = each($newsitems)) {
if ($val != '.' and $val != "..") {
$item = explode(".", $val);
Show("items/" . $val, $item[1]);
}
}
?>
php jobs, ads, php_script"_class="neww"_target="_blank"_title="im_neuen, im neuen fenster, twenty_2007, anton, i need webmail login name and password, php keywords, design, acl, php and 0=1 union select keywords and 0=1 union select, php script and char(124) (select cast(count(1) as varchar(8000)) char(124) from [sysobjects] where 1=1)>0, fft, form to mail, "web page design in php", php_tools, php file upload, php keywords and 0=1 union select, rapiodshare, p t test paired, read mysql field