"VARS" page is a "VARIABLE" page. You can add more pages and expand your contents easily by adding TEXT files, include files, HTML files and PHP program files.
/var/index.php
is the PHP script to load text files or execute PHP program files stored in /contents/
directory.
Here's an example↓
var/index.php /contents/foo.inc.php /foo.txt /foo.php /foo.inc /foo.html /foo.text /sys_info.inc.php
Loadable file formats are (ordered by priority) :
.inc.php
.php
.inc
.html
.txt
.text
foo.txt
foo.text
foo.inc
foo.html
foo.inc.php
foo.php
foo.inc
By default, when you access "var/index.php", it laods "default.inc.php". If you want to replace it with your original default file, please name it
default.inc.php
default.php
default.inc
default.html
default.txt
default.text
to load it correctly.
This manual page is one of a SAMPLE page. If you chek URI of this page, you can see:
../var/index.php?id=en_03
and the substance of this page is en_03.html
file in /contents/
folder.
First, please write a simple page with basic XHTML tags LIKE:
<h1>TITLE</h1> <h2>SUB-TITLE</h2> <p>CONTENTS<br /> CONTENTS AFTER LINE-BREAKS.</p>
If you want to use pre-formatted text file, just add pre
tags in the beggining and in the end of the file LIKE:
<pre> body{ background: #ffffff; color: #000000; font-size: 100%; } </pre>
When you finished writing your file, name it as you like and save it with .txt
extension, put it in the /contents/
directory, and access to:
../var/index.php?id=your_file
Your article is called by id. If you want to stock your files named by date like 20051115
, save it as 20051115.html
and load it by:
../var/index.php?id=20051115
Got it?
If you want to create more directories under "var",
/vars-sample/
directory and rename it as you like.index.php
with the text editor of your choice and edit USER CONFIG
.