Knebel Home
{ PHP Classes }
CLASS: clsData
database class (clsData) for PHP / MySql
CLASS: clsThrowError
Use this class to handle errors. SYNTAX: $oErr->location = "FunctionName"; $oErr->error = "Error getting SQL results"; $oErr->description = mysql_error(); $oErr->debug = true; //OR false $oErr->debug_info = $sql; //no print if debug...
Create and Set Class Variables at Run-Time
This class includes a function to create/set any variable for your class. NOTE: these are not available to the get_class_vars() function
FTP Upload Class
The following class can be used to upload files. Using FTP, you have control over authentication and read/write permissions, therefore this should be fairly flexible. Simply change the values in clsUploadFile (CONSTRUCTOR) to fit the destination ...
IMAP with PHP
The following code contains two pages which demonstrate the ability to list, view, reply, send and delete messages via IMAP with PHP.  First is the end-user page, mobile_imap.php, and the second is the class which handles everything, _cl...
Passing variables into a class
Here's a quick example of passing variables into a class at instantiation.
PHP Class Inheritance
The following is an example of how you can use OOPs inheritance to extend PHP classes. Usage: class classB extends classA { }
Tab-System (rounded-edge images)
The following function can be used to dynamically build a tab system.