IntoVPS 01 Feb – 28 Feb 2009
Uptime 99.25%, Downtime 4h 58m, Response time 153.85 ms, Outages 4
LimeHost 01 Feb – 28 Feb 2009
Uptime 99.44%, Downtime 3h 44m, Response time 127.35 ms, Outages 20
NOT just another blog.
FirePHP “enables you to log to your Firebug Console using a simple PHP method call. All data is sent via response headers and will not interfere with the content on your page. FirePHP is ideally suited for AJAX development where clean JSON and XML responses are required.”
Using it with Codeigniter is very simple. First download FirePHP core library. Look inside newly downloaded zip file and extract from there FirePHP.class.php (you can find it inside FirePHPCore/lib/FirePHPCore/).
Rename FirePHP.class.php to firephp.php and move it or upload it to your Codeigniter system/application/libraries/ folder.
Using it is very simple. Just load it in your controller and start using it.
class Welcome extends Controller {
function __construct() {
parent::Controller();
$this->load->library('firephp')
}
function index() {
$this->firephp->log("Log");
$this->firephp->info("Info");
$this->firephp->error("Error");
}
}
Now take a look on FireBug console and you should see something like that
This is a basic example usage. A more advanced usage is available inside MY_Controller (enable it for certain ip or group log messages together).
Download MY_Controller (71)
Add to /etc/apt/sources.list
deb http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main deb-src http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main
Import the pub key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D81367B9
Install python2.6
sudo apt-get install python2.6
Download MY_Controller (71)
February 28, 2010
February 05, 2010
Uptime 99.90%, Downtime 0h 45m 01s, Response time 172 ms, Outages 8
Uptime 98.91%, Downtime 8h 05m 00s, Response time 128 ms, Outages 10