PX : code

Integrating and form by Steven Boger
Download this code


<HTML>
<BODY>
<center>
Department News
<br><br><br>
<table width="90%" border="0" cellspacing="0" cellpadding="10">
<?php
exec
"/bin/ls -t /mnt/novell/EVERYONE/news/*.txt /mnt/novell/EVERYONE/news/*.TXT",$s);
for (
$p 0;$p count($s);$p++) {
    echo 
"<TR bgcolor=\"#D0D0D0\"><TD>\n";
    
$file file("$s[$p]");
    for(
$i 0;$i count($file);$i++) {
         if (
$i == 0) {
            echo 
"<font size=\"+1\">$file[$i]</font><BR>\n"
            } elseif (
$i == 2) {
            echo 
"<font size=\"+2\">$file[$i]</font></td></tr><TR BGCOLOR=\"#E0E0E0\"><td>\n";
            } else {
            echo 
"$file[$i]<BR>\n";
        }
    } 
    echo 
"</td></tr><TR><TD><br></TD></TR>\n";
}
?>
</table></center>
</BODY>
</HTML>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.