PHP Classes

File: backup.php

Recommend this page to a friend!
  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: 15 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();
?>