PHPBuilder - BBS or Forum revised pg3



RSS Twitter
Snippets Bbs Discussion

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 remmy82@hotmail.com -->
<?php
$filename = "$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>BBS or Forum title here</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="#9999cc"></TD>
    <TD bgcolor="#9999cc" height=16>
      <P align=center>BBS or Forum Title here</P>  </TD>
    <TD bgcolor="#9999cc"></TD></TR>
  <TR>
    <TD bgcolor="#9999cc"></TD>
    <TD><?php echo "$msg" ?></TD>
    <TD bgcolor="#9999cc"></TD></TR>
  <TR>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc"></TD></TR></TABLE></DIV>



</body>
</html>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Daniel Cameron

Comment:



Comment:

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