index

Testing Modes

THIS has two testing modes. Readonly and Temporary. The default is Readonly 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 exceptions that new posts or comments cannot be created). No MySQL is used in this mode, all posts are files.

The Temporary mode can be used only after the MySQL code has been enabled by the Admin SETUP command. Once setup, and out of Readonly 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 all 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.