Login   Register  
PHP Classes
elePHPant
Icontem

i`ve added class constructor: function Cacher ($name) { i...

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Cacher  >  All threads  >  i`ve added class constructor: function Cacher ($name) { i...  >  (Un) Subscribe thread alerts  
Subject:i`ve added class constructor: function Cacher ($name) { i...
Summary:Package rating comment
Messages:1
Author:cpu1
Date:2009-10-24 20:53:14
 

cpu1 rated this package as follows:

Utility: Sufficient
Consistency: Sufficient

  1. i`ve added class constructor: function Cacher ($name) { i...   Reply   Report abuse  
Picture of cpu1
cpu1
2009-10-24 20:53:14
i`ve added class constructor:

function Cacher ($name) {
if (!is_dir ($this -> cacheDir . $name)){
mkdir ($this -> cacheDir . $name, 0777);
}
$this -> cacheDir = $this -> cacheDir . $name . '/';
}

and replaced " var $cacheDir = "/tmp/"; " into " var $cacheDir = "tmp/"; "