Login   Register  
PHP Classes
elePHPant
Icontem

File: backup.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Aman Kumar Jain  >  ajDbBackup  >  backup.php  >  Download  
File: backup.php
Role: Example script
Content type: text/plain
Description: Example file
Class: ajDbBackup
Take a MySQL database backup and send it by e-mail
Author: By
Last change:
Date: 5 years ago
Size: 309 bytes
 

Contents

Class file image Download
<?php
include './ajDbBackup.class';
$backup = new ajDbBackup;
$backup->emailTo "email@domain.tld";
$backup->emailFrom "emailTwo@domain.tld";
$backup->host "mysqlHost";
$backup->user "mysqlUser";
$backup->password "mysqlUserPassword";
$backup->dbName "mysqlDbNameToBeBacked";
$backup->ajMail();
?>