Login   Register  
PHP Classes
elePHPant
Icontem

File: ver2/sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  Scheme Creator  >  ver2/sample.php  >  Download  
File: ver2/sample.php
Role: Example script
Content type: text/plain
Description: sample
Class: Scheme Creator
Get the schema of a MySQL database into a XML file
Author: By
Last change:
Date: 5 years ago
Size: 593 bytes
 

Contents

Class file image Download
<?php 

ini_set
("max_execution_time",180);

include_once(
"interface.php");
include_once(
"SchemeModel.class.php");
include_once(
"SchemeCreator.class.php");
include_once(
"Db_AdapterMysql.class.php");
include_once(
"Db_AdapterPdo.class.php");

$dsn = new stdClass;
$dsn->host "localhost";
$dsn->database "users";
$dsn->user "root";
$dsn->password "password";
$dsn->type "Mysql";
$dsn->adapter "Pdo";
$dsn->socket false;


$showTable  = new SchemeCreator(GLOBALMODELSDIR.DIRECTORY_SEPARATOR);
$showTable->setDb(new SchemeModel($dsn));
$showTable->doCreate();