Login   Register  
PHP Classes
elePHPant
Icontem

File: Test

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of CÚsar Bruschi  >  MySQL CSV Dump  >  Test  >  Download  
File: Test
Role: Example script
Content type: text/plain
Description: test and examples
Class: MySQL CSV Dump
Dump MySQL tables into compressed CSV files
Author: By
Last change:
Date: 4 years ago
Size: 565 bytes
 

Contents

Class file image Download
<?php 

//INclude
include_once("class.DBDump.php");

//Conection data
$host "localhost";
$user "user";
$pass "pass";
$db "database";

//Create the object
$dump = new DBDump($host$db$user$pass);
//Set debuger on
$dump->setDebugMode(true);
//Destination
$dump->setPath("D:\\backups\\"); //El directorio DEBE EXISTIR!!!
//Tablas que no se copiar´┐Żn
$dump->quitTable(
        array(
        
'temp',
        
'logs',
        
'temporal',
        
'session'));
//Mail it!
$dump->xMail "me@domain.com";
//Backup!
$dump->dump();
?>