⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ct_file.inc

📁 PHPLOB注释详细版 使用模板技术的好帮手 PHP最有用的东东了
💻 INC
字号:
<?php#### Copyright (c) 1999-2000 Oliver Teuber <oliver@teuber.com>#### PHPLIB Data Storage Container using Files#### Code inspired by ct_dbm.inc class CT_File {    ##    ## Define these parameters by overwriting or by    ## deriving your own class from it (recommened)    ##    var $file_path = "";  ## Path where to store the session files                          ## writable by the web server UID    ## end of configuration        function ac_start() {        # Not needed in this instance    }    function ac_get_lock() {        # Not needed in this instance    }    function ac_release_lock() {        # Not needed in this instance    }    function ac_newid($str, $name) {        return $str;    }    function ac_store($id, $name, $str) {        $f=fopen($this->file_path . "$id$name",'w+');        if($f<0)        {            return false;        }        fputs($f,urlencode($str));        fclose($f);        return true;    }    function ac_delete($id, $name) {        unlink($this->file_path."$id$name");    }    function ac_gc($gc_time, $name) {    }    function ac_halt($s) {        echo "<b>$s</b>";        exit;    }    function ac_get_value($id, $name) {        if(file_exists($this->file_path."$id$name"))        {            $f=fopen($this->file_path."$id$name",'r');            if($f<0)                return '';            $s=fgets($f,10240);            fclose($f);            return urldecode($s);        }        else            return '';    }}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -