PHP Classes

File: doBackup.php

Recommend this page to a friend!
  Packages of Gerry Danen   Danen MySQL Backup   doBackup.php   Download  
File: doBackup.php
Role: Example script
Content type: text/plain
Description: Shows how to call the class
Class: Danen MySQL Backup
Create database backup SQL statements using MySQLi
Author: By
Last change:
Date: 11 years ago
Size: 319 bytes
 

 

Contents

Class file image Download
<?php
//    example to do a full database backup

require_once 'danenMysqlBackup.class.php';


$B = new danenMysqlBackup();

$backupSqlFile = $B->backupStart();

if ( $backupSqlFile )
{
    $backupSqlFile = basename( $backupSqlFile );
    echo "Created: $backupSqlFile";
}
else
    echo "ERROR: backup failed.";