PHP Classes

File: doBackup.php

Recommend this page to a friend!
  Classes 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: 7 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.";


For more information send a message to info at phpclasses dot org.