The Ashes

Technology, Science and other news
April 10, 2009

FirePHP: Tying together Firebug and PHP

Posted by : admin
Filed under : General

FirePHP solves the problem of AJAX debugging by sending debug information along with the response. To avoid breaking the response content, the debug information is placed into special HTTP response headers. This works for all types of requests, not just AJAX requests, which means you can even debug requests for images that are dynamically generated by a PHP script. You can use FirePHP in your development environment, or use it to track down bugs that only appear on your production site.

This is what Christoph Dorn has to say about FirePHP in his recent writeup.

He goes into detail on how you can setup the Firebug plugin, and how you use it from within PHP:

PLAIN TEXT
PHP:

  1.  
  2. // use an ini file to turn it on and off
  3. $settings = @parse_ini_file(‘settings.ini’);
  4.  
  5. if ($settings[‘FirePHP’] == ‘Enabled’) {
  6.   FB::setEnabled(true);
  7. } else {
  8.   FB::setEnabled(false);
  9. }
  10.  
  11. // log away!
  12. FB::log(‘This is a log message’);
  13.  
  14. // selectively log
  15. if (Debug::getOption(‘DisableCache’)) {
  16.   // code to disable cache
  17.   FB::info(‘Cache has been disabled!’);
  18. } else {
  19.   // default code
  20. }
  21.  

Check out the article for more info.

In related news, Zend just stepped it up a notch with their new Zend Server that fits in nicely with the cloud.

Tags :

No Comments

(required)
(will not be published) (required)
(opitional)

cciash.com EN ES IT DE PT CZ FR RU
February 2018
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728  

Pages

Categories

Resources

There are many online poker site where you can play but at poker.hk you can play the poker games with all the knowledge you need related to the game with the poker school available in both the English and Chinese language.

Super Casino

Now you can bet on any sports and any sporting events from all the comfort from your home. Bet770 allows you to bet on any events and match with in just 3 clicks. They also offers great odds on football betting for every premier and champions league match. Get £50 free in bets when you register.

Bingo770, offering best online bingo games with £7.70 free no deposit Bonus!