How to Install:
- Upload the "public_html/kb" directory to the location of your choice (usually the site root)
- Generate an API key by pointing your browser to http://yoursite.com/kb/?cmd=gak
- Copy the bold face API key from that page.
- Install and run the KillBugs desktop AIR application.
- In the options panel, enter the URL: http://yoursite.com/kb/
- Then enter the API key you copied from the API generation page.
- If you want anyone else to connect to your KillBugs server, just send them the URL and API key for the server.
Connecting to the KB Class:
- Just put the following line of code in your PHP script:
include "kb/kb.php";
- Once that is done your PHP scripts will make use of the custom KB error handling automatically.
- It also means you can use the following KB methods to log custom messages or dump arrays and objects as needed:
- KB::error()
- KB::warn()
- KB::alert()
- KB::debug()
- KB::info()
- KB::log()
- KB::trace()
- All of the above methods are essentially identical except for the "type" that is displayed for each log item.
- We also thought that you may find it nice to call a function that has a familiar feel to it rather than having to change your workflow.