Добавлено логирование и исправлены некоторые ошибки в классах
This commit is contained in:
28
script.php
Normal file
28
script.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// require_once(dirname(__FILE__) ."/app/library/Database.php");
|
||||
// require_once(dirname(__FILE__) ."/app/library/DatabaseConfig.php");
|
||||
// use App\Library\Database;
|
||||
// use App\Library\DatabaseConfig;
|
||||
|
||||
// $dbOpendata = new Database(new DatabaseConfig('opendata'));
|
||||
// $sql = 'SELECT DISTINCT org_id FROM sveden_education_contingent';
|
||||
// $org = $dbOpendata->selectQuery($sql);
|
||||
// $orgs = [];
|
||||
// foreach ($org as $o) {
|
||||
// $orgs[] = $o['org_id'];
|
||||
// }
|
||||
// unset($org);
|
||||
|
||||
// print_r($orgs);
|
||||
|
||||
// $filename = 'error-html.log';
|
||||
// $array = file($filename);
|
||||
// for ($i = 0; $i < count($array); $i++) {
|
||||
// $arr = explode(' ', $array[$i]);
|
||||
// if (!in_array($arr[2], $orgs)) {
|
||||
// //file_put_contents(__DIR__ . '/error-html2.log', $array[$i], FILE_APPEND);
|
||||
// }
|
||||
// }
|
||||
|
||||
var_dump("eduLеvel" != "eduLevel");
|
||||
var_dump("eduCode" == "eduCode");
|
Reference in New Issue
Block a user