<?php require_once "../php/h.php"; echo sha1('test'); $c2 = __k_fetch("c2"); #__k_r( $c2 ); # $l = new c2Log( "test" ); # $l->log( "test" ); $db = new c2PDB($c2["sys.c"]); if (!$db->Connect()) { __k_die("connection error"); } echo $db->time(); $db->Disconnect(); echo $db->time();
function __k_sd() { if ($e = error_get_last()) { $m = 'Fatal error on line ' . $e['line'] . ' in file ' . $e['file'] . "\n"; $m .= "PHP " . PHP_VERSION . " (" . PHP_OS . ")\n"; $m .= $e['message'] . "\n"; __k_die($m); } }
function __k_exception_handler($e = NULL) { __k_die($e->getMessage()); }