Skip to content
A very small Plugin for AdoDB Lite that enables you to use FirePHP for error/debug Logging
PHP
Find file
Latest commit dbdf43d @SunboX removed *.txt file

README.md

How to use this Plugin

Introduction

This code snipped shows how to use the FirePHP Plugin for AdoDB Lite.

Code Snipped

$debug = true;

require_once('lib/FirePHPCore/fb.php');

$firephp = FirePHP::getInstance(true);

if($debug)
{
    ob_start(); // requiered by FirePHP
    $firephp->setEnabled(true);
}
else
{
    $firephp->setEnabled(false);
}

require_once('lib/adodb_lite/adodb.inc.php');
require_once('lib/adodb_lite/adodb-firephp.inc.php'); 

$db = NewADOConnection($DATABASE_DNS);
$db->debug = $debug;

//...

License

See license file.

Something went wrong with that request. Please try again.