Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A very small Plugin for AdoDB Lite that enables you to use FirePHP for error/debug Logging
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.