Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2012-04-04 10:09
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);

?>