Scott MacVicar
03-15-2006, 10:00 PM
While doing some dev work I was getting annoyed with my second SQL server disappearing and me getting 100 emails telling me so, now the problem was the database couldn't be connected to so I couldn't store the time the error occured.
I did think of a text file but I wanted emails for different types of errors so I decided to use SQLite, I also didn't want to have to deal with file locking and parsing.
You will need PHP 5+
You will need to do the following:
* Create a cache folder in your main vBulletin directory
* Chmod cache folder to 666
* Upload blank index.html to the cache folder
* Upload db_error_install.php to your install folder
* Run db_error_install.php
* Edit class_core.php as in the text file
If there is something like this already, apologies.
I did think of a text file but I wanted emails for different types of errors so I decided to use SQLite, I also didn't want to have to deal with file locking and parsing.
You will need PHP 5+
You will need to do the following:
* Create a cache folder in your main vBulletin directory
* Chmod cache folder to 666
* Upload blank index.html to the cache folder
* Upload db_error_install.php to your install folder
* Run db_error_install.php
* Edit class_core.php as in the text file
If there is something like this already, apologies.