PHP Classes

File: exercise/sakila/common.php

Recommend this page to a friend!
  Packages of Jorge Castro   Chaos Machine One   exercise/sakila/common.php   Download  
File: exercise/sakila/common.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Chaos Machine One
Generate random data that obeys to formulas
Author: By
Last change:
Date: 8 months ago
Size: 709 bytes
 

Contents

Class file image Download
<?php

use eftec\chaosmachineone\ChaosMachineOne;
use
eftec\PdoOne;

@
set_time_limit(200);

include
"../../vendor/autoload.php";
include
"../../lib/en_us/Person.php";


//$db=new PdoOne("mysql","localhost","root","abc.123","sakila");
$db=new PdoOne("sqlsrv","PCJC\SQLDEV","sa","ats475","sakila2021");
$db->open();
$db->logLevel=3;

/*
$tables=$db->objectList('table','true');
foreach($tables as $table) {
    $file=$table.'.php';
    if(!file_exists($file)) {
        $chaos=new ChaosMachineOne();
        $chaos->setDb($db);
        $code="<?php\n";
        $code.="use eftec\chaosmachineone\ChaosMachineOne;\n";
        $code.=$chaos->generateCode($table);
        file_put_contents($file,$code);
    }
}
*/