A very small Plugin for AdoDB Lite that enables you to use FirePHP for error/debug Logging
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
adodb-firephp.inc.php
license

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.