Zend Certified Engineer

phpguru.org

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

Add to Google...

HTML5 & CSS3

Articles

Javascript

PHP5

PHP4






Bookmark with delicious tweet this site Post to Google Buzz! Stumble! this site

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.