Zend Certified Engineer

phpguru.org

Quality PHP, Javascript and C# code
Download RGraph: HTML5 canvas graph library... Home ~ Downloads ~ FAQs ~ Licensing
RSS Feed RSS Feed
Follow me on Twitter Follow me on Twitter

Articles

HTML5

Javascript

PHP5

PHP4




Bookmark with delicious Stumble! this site tweet this site Buzz this!

Cache

A caching library to facilitate caching of script output and data structures within the script. Structure is thus:

class Cache (base class)
       |
       |  Static Properties:
       |    bool enabled
       |
       |  Static Methods:
       |    void setPrefix(string prefix)
       |    void setStore(sttring store)
       |      
       |
       +--- class OutputCache
       |
       |      Static Methods:
       |        bool Start(string group, string id, int ttl)
       |        void End()
       |
       +--- class DataCache

              Static Methods:
                mixed Get(string group, string id)
                void Put(string group, string id, int ttl, mixed data)

For usage see the short article on caching. There are two scripts included in the zip file to perform cleansing of stale content from the storage area. One in shell script, one in PHP.

Download



RGraph: HTML5 canvas graph library

Example graph made using RGraph

If you're interested in web development, then you may also be interested in RGraph: HTML5 canvas graph library. It uses HTML5 features to produce a wide variety of graph types. Because it moves the creation of graphs from the server to the client, it can significantly reduce the load on your server and your bandwidth usage.