PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Kakhaber Kashmadze  >  PHP MySQL and PostgreSQL Database Dump Utility  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP MySQL and PostgreSQL Database Dump Utility
Dump a MySQL or PostgreSQL database to an archive
Author: By
Last change: Update example.php
Update example.php
Date: 6 months ago
Size: 363 bytes
 

Contents

Class file image Download
<?php
ini_set
("display_errors", 1);
require_once
"SqlDump.php";
$sqlDumpCls=new SqlDump();

$dbParams=array("localhost","username","password","databasename");
$sqlDumpCls->setDbParams($dbParams);
$sqlDumpCls->setDbType("MySQL");
$sqlDumpCls->save("/tmp/"); /* For MS Windows backup path maybe C:\Windows\Temp, or other path where is located temporary files */
?>

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