Show to include the BBS Archive

The past log can be seen from Joyfulyy CGI in Joyfulyy BBS (bulletin board). However, it cannot be said that it will be easy to see too much. The PHP include was done in original HTML and the past log was displayed at the Joyfulyy BBS. Because it was possible to display it easily and well, I will introduce how to do.

Generation of past log of Joyfulyy BBS and the form

As for Joyfulyy BBS (bulletin board), the support has stopped now though the upgrade is very high performance and is easy and is good. It is very regrettable.

The form of the log has been composed of a part of HTML in the past of Joyfulyy BBS. It is ,in a word, HTML file. The log is automatically generated in the past when the amount of a present log increases, and the set number of maximum articles is exceeded. The file name is 1. It becomes dat.

Moreover, when the log in the past exceeds the set number of lines (number of articles), the file name automatically : 2. It becomes dat 3.dat and it increases.

This 1 by way of experiment . It is 1 as for the file name of dat . It is possible to see tentatively by renaming as htm and displaying it by a browser. It is this purpose to display this neatly by using CSS etc. and PHP.

Include the BBS past log file by PHP or SSI

The log in the past of the Joyfulyy bulletin board in an extension as it is To read with PHP, as follows is done. This is used to actually display the log in the past of the repair technology information bulletin board.

<?php include($_SERVER['DOCUMENT_ROOT']."/cgi/joyfulyy/past/101.dat"); ?>

In a word, include is done with PHP and the log file is taken in the past. (Please refer to the page of "External menu file" for details. )

The log file can be taken by doing include by SSI of course in the past. In that case, as follows is done.

<!--#include virtual="/cgi/joyfulyy/past/101.dat" -->

Moreover, the display method in which HTML is detailed is specified with the CSS file. (Please refer to the page of "CSS command" for details. )

Please refer to the page of "Steps class layout" for the way of the steps class. The file shared by PHP in the head tag is taken. Please see the page of "Share in the head tag" in detail.

The HTML file example is as follows for PHP. There is a part of omission Japanese is not actually used for the file name though the file name is Japanese because it makes it plainly. Very, and it is likely to be able to make it only from the include file easily.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<?php $title = "Past log title"; ?>
<head>
<?php include($_SERVER['DOCUMENT_ROOT']."/inc/head_tag.htm"); ?>
</head>
<body>
<div id="main">
<h1><?php echo $title;?></h1>
<?php include($_SERVER['DOCUMENT_ROOT']."/inc/message.htm"); ?>
<?php include($_SERVER['DOCUMENT_ROOT']."/inc/adsense_up.htm"); ?>
<?php include($_SERVER['DOCUMENT_ROOT']."/cgi/joyfulyy/past/101.dat"); ?>
<?php include($_SERVER['DOCUMENT_ROOT']."/inc/adsense_down.htm"); ?>
<?php include($_SERVER['DOCUMENT_ROOT']."/inc/main_menu.htm"); ?>
<?php include($_SERVER['DOCUMENT_ROOT']."/inc/past_log_menu.htm"); ?>
<?php include($_SERVER['DOCUMENT_ROOT']."/inc/footer_menu.htm"); ?>
</div>
<?php include($_SERVER['DOCUMENT_ROOT']."/inc/side.htm"); ?>
</body>
</html>

Advantage of doing include and displaying log file in the past etc.

Method of displaying image by log in the past

The log image is deleted in the past of Joyfulyy BBS. If it wants to make this displayed, as follows is done.

The image is copied onto another folder when there is an image in a present log and it up-loads it to the server. Next, the contribution is corrected by the manager authority and the image is displayed with the following tag. The image is made left justify by the class setting of CSS.

<img src ="http://homepage address/image folder/picture file name" />

The image can be displayed even by the log display in former past, and can be displayed even on the page that did the log in include in the past even if the file moves to the log in the past in case of this method.

The size of the file of the log is made moderate in the past.

The size of the file of the log is made a moderate size in the past. What is written when the file is too large where or it has a hard time though it looks for though it doesn't know. After all, such a page cannot be seen.

II am adjusting this to about 12-15 lines though the size of one file of the log seeming is 600 lines in the standard of Joyfulyy BBS in the past. (One contribution is one line.)It is necessary to increase and decrease moderately according to the bulletin board.