This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Handles backing up database automatically and emailing it to me. | |
*/ | |
date_default_timezone_set('America/Chicago'); // necessary in some server environments before using any Date/Time functions. | |
$timestart = microtime(true); | |
config(); // sets up constants and configurations for database credentials, error handling, etc. including using local environment specific options. | |
$filename = backup_tables(DB_HOST, DB_USER, DB_PASS, DB_NAME); // backs up data. |