Connect( $conf['database']['dbhost'], $conf['database']['dbuser'], $conf['database']['dbpass'], $conf['database']['dbname']) or die('Cannot connect to DB.'); $db->debug= true; /* Use the database connection to create a new adoSchema object. */ $schema = new adoSchema($db); $withdata=false; $stripprefix=true; $data = $schema->ExtractSchema( $withdata, ' ', $conf['database']['dbprefix'], $stripprefix); file_put_contents('flyspray-schema.xml', $data); ?>