コード例 #1
0
ファイル: c2Ses.php プロジェクト: hornos/C2
 public function __construct($cfg = NULL)
 {
     parent::__construct($cfg);
     $this->_time = time();
     $this->_msec = microtime();
     // register session handlers
     session_set_save_handler(array(&$this, 'open'), array(&$this, 'close'), array(&$this, 'read'), array(&$this, 'write'), array(&$this, 'destroy'), array(&$this, 'gc'));
 }
コード例 #2
0
ファイル: test.php プロジェクト: hornos/C2
<?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();