najpierw kawałek kodu:
<?php
class session{
//db data
public static function on
($useDB=false,$host="",$user="",$pass="",$db="",$type="mysql"){ if(!self::$sessionId){
if($useDB){
$host?self::$host=$host:self::Exception();
$user?self::$user=$user:self::Exception();
$pass?self::$pass=$pass:self::Exception();
$db?self::$db=$db:self::Exception();
session_set_save_handler(self::_open
(),self::_close
(),self::_read
(),self::_write
(),self::_destroy
(),self::_gc
())or
self::Exception(); }
}
else self::Exception();
}//end on
private static function Exception
($nfo){ require_once(dirname(__FILE__)."/Session/Exception.class.php"); throw new Session_Exception($nfo);
}
public function sessionId(){
return self::$sessionId;
}
/*-------------------------------------*
| -- session handlers -- |
*-------------------------------------*/
private static function _open
(){ return "";
}//end _open
private static function _close
(){
}//end _close
private static function _read
(){
}//end _read
private static function _write
(){
}//end _write
private static function _destroy
(){
}//end _destroy
private static function _gc
(){
}//end _gc
}
?>
nie rozumiem czemu dostaje komunikat, skoro handlery są poustawiane:
Warning: session_set_save_handler() [function.session-set-save-handler]: Argument 1 is not a valid callback in /home/deirathe/domains/3ther.net/public_html/framework/session.class.php on line 28czy ktoś może wie jak to naprawić??
dzięki z góry