PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Tofeeq ur Rehman   MySQL DB Schema to XML and XML to Schema   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: MySQL DB Schema to XML and XML to Schema
Export and install a MySQL database schema to XML
Author: By
Last change:
Date: 16 years ago
Size: 656 bytes
 

Contents

Class file image Download
<?php
// to export schema in xml file

   
include('mysql_db_schema_2_xml.php');
   
$obj_schema = new mysql_db_schema_2_xml("temp2",$db_conn);
   
//$obj_schema = new mysql_db_schema_2_xml("temp2",null,"localhost","root","");
    //provide full file path and flag to either download it to your local system
   
$obj_schema->generateXMLSchema($mFileName,true))){

//to import the exported xml schema
   
include_once("mysql_db_xml_2_schema.htm");
   
$obj_schema = new mysql_db_xml_2_schema($xml_file,"temp2",$db_conn);
   
//$obj_schema = new mysql_db_xml_2_schema($xml_file,"temp2",null,"localhost","root","");
   
$log = $obj_schema->XML2Schema();
echo
$log;


?>