<?php
include("/pathto/MySQL.class.php"); // Needed for DB connect
include("/pathto/Date.class.php"); // Needed for date part
include("/pathto/generadorobjetos.class.php"); // Needed for it to work
$newdb = new mysql();
$newdb->mysql_configure($host,$port,$user,$pass,$db);
$newdb->mysql_connect();
$generador = new objectgenerator();
$generador->set_autor("Your name");
$generador->set_empresa("Your company name");
$generador->set_email("Your e-mail");
$generador->generar($newdb,"/pathto/Objects");
?>
|