Location: PHPKode > projects > Decider > decider/backups/dbsender/dbsender.php
<?php

if(isset($_POST['backup'])){

// configure your database variables below:
$dbhost = 'localhost'; // Server address of your MySQL Server
$dbuser = 'root'; // Username to access MySQL database
$dbpass = ''; // Password to access MySQL database
$dbname = 'deciderdb'; // Database Name

$savepath = "C:/Temp"; // Full path to this directory. Do not use trailing slash!

$senddate = date("j F Y");

	$date = date("mdy-hia");
	$filename = "$savepath/$dbname-$date.txt";	
	passthru("mysqldump --opt -h$dbhost -u$dbuser -p$dbpass $dbname >$filename");
	
	
exit;

}
?>
Return current item: Decider