hello there!
how will i view my files in file.txt by 5. meaning there's only 5 files on every page.
also how can i make the email and url as hyperlink (href) basing from the following codes.
$filename = $_SERVER['DOCUMENT_ROOT']."/view.txt";
$whattoread = @fopen($filename, "r");
$file_cnt = fread($whattoread, filesize($filename));
$msg = "$file_cnt";
fclose($whattoread);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Forum</title>
</head>
<body>
<DIV align=center>
<TABLE style="HEIGHT: 113px; WIDTH: 420px">
<TR>
<TD bgcolor="#9999cc"></TD>
<TD bgcolor="#9999cc"></TD>
<TD bgcolor="#9999cc"></TD></TR>
<TR>
<TD bgcolor="#006600"></TD>
<TD bgcolor="#006600" height=16>
<P align=center><font face="Arial, Helvetica, sans-serif" size="2"><b>
<font color="#FFFFFF">Ladyzelka's Message Board</font> </b></font></P>
</TD>
<TD bgcolor="#006600"></TD>
</TR>
<TR>
<TD bgcolor="#006600"></TD>
<TD><font size="2" face="Arial, Helvetica, sans-serif" color="#000000">
<?php echo "$msg" ?></font>
</TD>
<TD bgcolor="#006600"></TD>
</TR>
<TR>
<TD bgcolor="#006600"></TD>
<TD bgcolor="#006600"></TD>
<TD bgcolor="#006600"></TD>
</TR></TABLE></DIV>
</body>
</html>
i hope you can help me and send me ur reply ASAP.
thank you very much!