PHPBuilder - BBS or Forum revised pg3

RSS Twitter

BBS or Forum revised pg3

by: Daniel Cameron
October 30, 2000

Version: PHP4

Type: Full Script

Category: BBS/Discussion

License: GNU General Public License

Description: This is a basic BBS or Forum I created using a Web page to submit your name, topic, and message, then another page that writes the data to a file and displays what you wrote, then allows you to procede to BBS or Forum page. This is the last page, view.php

<!-- // script design by: Daniel Cameron, San Jose, CA, 95123, USA 
// email -->
$filename = "$DOCUMENT_ROOT/view.txt";
$whattoread = @fopen($filename, "r");
$file_cnt = fread($whattoread, filesize($filename));

$msg = "$file_cnt";

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
	<title>BBS or Forum title here</title>

<DIV align=center>
<TABLE style="HEIGHT: 113px; WIDTH: 420px">
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc"></TD></TR>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc" height=16>
      <P align=center>BBS or Forum Title here</P>  </TD>
    <TD bgcolor="#9999cc"></TD></TR>
    <TD bgcolor="#9999cc"></TD>
    <TD><?php echo "$msg" ?></TD>
    <TD bgcolor="#9999cc"></TD></TR>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc"></TD></TR></TABLE></DIV>


Comment and Contribute

Your comment has been submitted and is pending approval.

Daniel Cameron



(Maximum characters: 1200). You have characters left.