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


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

require_once 'danenMysqlBackup.class.php';

$B = new danenMysqlBackup();

$backupSqlFile = $B->backupStart();

if (
$backupSqlFile )
$backupSqlFile = basename( $backupSqlFile );
"Created: $backupSqlFile";
"ERROR: backup failed.";

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