Documentation Index

Testing Modes

THIS has two testing modes. File and Temporary. The default is File and there are some pre-created posts that describe the code (they are in config('importdir')). This means that THIS works exactly as it would if it were fully setup (with the exception that comments cannot be created). No MySQL is used in this mode, all posts are files.

File mode creates a fully functional site — you just cannot allow comments. And could actually be deployed in this mode (with a few changes). But the Admin code does not require a login/password! However, one can rename it so no one will know where it is. If your webhost has an File Manager interface, such as CPanel, you would not even need the Admin code!

The Temporary mode can be used only after the MySQL code has been enabled by the Admin SETUP command. Once setup, and out of File mode (as explained by running the program and reading the posts), Temporary mode is the default. This mode creates and initializes a MySQL database but the tables are created with the MySQL TEMPORARY attribute. This means that THIS works exactly as it would as explained above, with the posts written to the database using the real MySQL module.

Once out of Temporary mode THIS works fully setup and with commenting capabilities enabled.

To enable these modes there exist two extra files, TESTING.PHP and NOMYSQL.PHP. Once fully setup these files are no longer necessary and can be removed and the line to include TESTING.PHP in INDEX.PHP can be removed and the MYSQL.PHP module should then be moved into the MOD directory.