Zend - The PHP Company




Code Gallery: rhull627


MySQLCache  

Type: class
Added by: rhull627
Entered: 29/09/2004
Last modified: 31/10/2003
Rating: - (fewer than 3 votes)
Views: 2543
This class caches a MySQL table on the filesystem. It is designed to be used with small tables. For example, you may have a table called `depts`, which stores information about the various departments in your website. Each dept may have a name, a path, auth info, etc. You may need to access this table for every page on your website in order to build the menu. For cases like these, caching on the filesystem offers a significant speed boost. Each row in the table is stored as an array element, which is then stored as a file using serialize(). You may optionally choose a field from the table to be the key for an associative array (eg the department name) instead. The array is stored in $this->data, and it will be populated by calling the constructor.


ProTimer Class  

Type: application
Added by: rhull627
Entered: 04/08/2004
Last modified: 08/12/2003
Rating: - (fewer than 3 votes)
Views: 3514
A lightweight timing class to be used for profiling your code. One member variable, 3 member functions (incl. constructor). Also includes a footer file so that you may include 'ProTimerFooter.inc'; in order to get a table that displays the profiling info.




Search