PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Nitesh Apte   Data Migrator and Merger   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: example
Class: Data Migrator and Merger
Synchronize MySQL tables with another database
Author: By
Last change: more example
Date: 12 years ago
Size: 400 bytes
 

Contents

Class file image Download
<?php
ini_set
("display_errors", 1);
error_reporting("E_ALL ~ E_NOTICE");

include_once
'class.DataMigratorMerger.php';

$obj = new DatabaseMergerMigrator();

//migrate/merge from oldschema to newschema
$obj->mergeData("oldschema","newschema");

// Put third parameter as TRUE if you want to migrate/merge from newschema to old schema.
$obj->mergeData("oldschema","newschema", TRUE);

?>