linxueqian 发表于 2009-9-27 17:56:56

缓存出错

有关CI页面缓存问题的终极解决方案

在实践以上方案是出现了如下错误

A PHP Error was encounteredSeverity: Warning
Message:flock() expects at least 2 parameters, 1 given
Filename: libraries/Output.php
Line Number: 392

HEX 对不住了,发错区了。

Hex 发表于 2009-9-27 19:21:36

呵呵,我帮你转移。

这行代码是什么样的,贴出来看看。

kangfuzhong 发表于 2009-9-29 13:53:52

flock(file,lock,block)


Parameter参数         Description描述
file         Required. Specifies an open file to lock or release
必要参数。指定需要执行操作的文件对象
lock         Required. Specifies what kind of lock to use.
必要参数。指定“锁”的方式。

Possible values:
可能值:

    * LOCK_SH - Shared lock (reader). Allow other processes to access the file
      LOCK_SH – 共享的锁(读者reader)。允许其它进程访问文件
    * LOCK_EX - Exclusive lock (writer). Prevent other processes from accessing the file
      LOCK_EX – 独占的锁(作者writer)。组织其它进程访问文件
    * LOCK_UN - Release a shared or exclusive lock
      LOCK_UN – 释放一个共享的或独占的锁
    * LOCK_NB - Avoids blocking other processes while locking
      LOCK_NB – 当上锁时,阻止其它进程运行

block         Optional. Set to 1 to block other processes while locking
可选参数。如果设置为1,那么阻止显示其它进程

你的flock()函数只写了一个参数
页: [1]
查看完整版本: 缓存出错