|
|
« travel teaches toleration. » (benjamin disraeli)
|
|
|
|
|
| |
class message
 this class "message" can be used for message/error handling in php scripts. it provides message collection (1 to N) with different message types. There is also a method "write()" that handles the output to the client (with different icons/colors for different message types. take a look at the example.
include_once '../class.message.php';
$msg = new message();
$msg->add("I","Info");
$msg->add("E","Error");
$msg->add("W","Warn");
$msg->add("S","Success");
$msg->add("D","Stop");
$msg->write("");
?>
|
|
| |
|
|
|