<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 20:20:35 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Debugging PHP Code with FirePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18673</guid>
      <link>http://www.phpdeveloper.org/news/18673</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial showing you a different method for debugging your code than the usual <a href="http://php.net/print_r">print_r</a> or <a href="http://php.net/var_dump">var_dump</a> - <a href="http://phpmaster.com/debugging-php-code-with-firephp/">using FirePHP</a>, a tool that uses messaging to relay information back to your browser.
</p>
<blockquote>
As the technical manager of a suite of software projects, one of my duties is doing code reviews. One of the things I see far more often than I'd like when doing reviews is debugging PHP code committed and pushed up the chain. [...] The safest method of debugging requires configuring your IDE to use a tool like Xdebug or Zend Debugger to trace currently executing code. This isn't always practical. In the absence of using a fully configured debug environment, I turn to FirePHP.
</blockquote>
<p>
He shows how to set up and configure <a href="http://www.firephp.org">FirePHP</a> to work with your debugging and some suggestions on browser extensions you can install to view the messages. Sample code is included showing you how to use the tool to send messages back to the browser including grouping messages, building tables and something that shows a conditional caching report message.
</p>]]></description>
      <pubDate>Tue, 30 Oct 2012 08:36:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[XPertDeveloper.com: PHP Debugging Tools]]></title>
      <guid>http://www.phpdeveloper.org/news/16866</guid>
      <link>http://www.phpdeveloper.org/news/16866</link>
      <description><![CDATA[<p>
On the XPertDeveloper.com blog today there's a new post sharing <a href="http://www.xpertdeveloper.com/2011/09/php-debugging-tools/">four handy debugging tools</a> you can use to make finding those elusive problems in your code simpler.
</p>
<blockquote>
PHP is very well used scripting language in now a days. But PHP does not have any inbuilt debugging tools or extension. But we have some extensions and tools available which serves the debugging purpose of the PHP.
</blockquote>
<p>The tools on their list involve both the backend and frontend:</p>
<ul>
<li><a href="http://xdebug.org/index.php">XDebug</a>
<li><a href="http://www.zend.com/en/community/pdt">Zend Debugger</a>
<li><a href="http://www.firephp.org/">FirePHP</a>
<li><a href="https://chrome.google.com/webstore/detail/nfhmhhlpfleoednkpnnnkolmclajemef?hc=search&hcp=main">PHP Console</a>
</ul>]]></description>
      <pubDate>Fri, 16 Sep 2011 08:49:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Henry Hayes' Blog: Firebug Console.Log for PHP using Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/16474</guid>
      <link>http://www.phpdeveloper.org/news/16474</link>
      <description><![CDATA[<p>
<i>Henry Hayes</i> has written up a handy post to his blog looking at <a href="http://www.websitefactors.co.uk/zend-framework/2011/05/firebug-console-log-for-php-using-zend-framework/">using FirePHP and Zend_Log_Writer_Firebug to log messages</a> directly to your Firefox's Firebug console.
</p>
<blockquote>
Due to sloppy programming in the past many PHP error logs can become very clogged up and, unless you use some fancy grep technique, unusable. [...] A project has been around for some time now called <a href="http://www.firephp.org/">FirePHP</a>. This enables us to log messages of various levels of severity to the Firebug console! - Awesome. Just imagine if you are developing an ajax app, you could have all your debug messaging in one place.
</blockquote>
<p>
He walks you through the steps needed to get the logging up and running - setting up FireBug (if you don't have it already) and FirePHP, editing your Zend Framework bootstrap file to add an _initLogging() method and using it for logging, both in the backend script and on the frontend <a href="http://www.websitefactors.co.uk/wp-content/uploads/2011/05/SimpleFirePHPConsole.png">in the console</a>. He also includes a quick update to the logging method that only logs to the Firebug console if the environment is not production. 
</p>]]></description>
      <pubDate>Wed, 15 Jun 2011 12:49:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Slawek Lukasiewicz's Blog: Zend Framework: logging with Firebug and FirePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16375</guid>
      <link>http://www.phpdeveloper.org/news/16375</link>
      <description><![CDATA[<p>
<i>Slawek Lukasiewicz</i> has <a href="http://www.leftjoin.net/2011/05/zend-framework-logging-with-firebug-and-firephp/">a new post</a> to his blog today showing you how to use the popular <a href="http://getfirebug.com/">Firebug</a> extension for Firefox with the <a href="http://www.firephp.org/">FirePHP</a> plugin to make error logging simpler and less obtrusive without ever having to leave the browser.
</p>
<blockquote>
If you use Firefox, I bet you already know <a href="http://getfirebug.com/">Firebug</a> extension. This is irreplaceable tool for web development. But there is also <a href="http://www.firephp.org/">FirePHP</a> extension, which provides possibility to log into Firebug console from PHP scripts. This is very convenient way for debugging process, because logs are independent from application output.
</blockquote>
<p>
He shows the integration you can do with the Zend Framework's <a href="http://framework.zend.com/manual/en/zend.log.overview.html">Zend_Log</a> component to write basic messages and the <a href="http://framework.zend.com/manual/en/zend.wildfire.chapter.html">Zend_Wildfire</a> component to write tabular data back to your browser's console with two snippets of code.
</p>]]></description>
      <pubDate>Tue, 24 May 2011 09:44:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christoph Dorn's Blog: Zend Server + FirePHP on AWS]]></title>
      <guid>http://www.phpdeveloper.org/news/15691</guid>
      <link>http://www.phpdeveloper.org/news/15691</link>
      <description><![CDATA[<p>
<i>Christoph Dorn</i> has <a href="http://www.christophdorn.com/Blog/2011/01/06/zend-server-firephp-on-aws/">a new post</a> today showing how to get the <a href="http://www.firephp.org/">FirePHP</a> tool to work together with Zend Server on an AWS instance to help make your debugging even simpler.
</p>
<blockquote>
<a href="http://www.firephp.org/">FirePHP</a> can nicely complement the built-in tools available when using <a href="http://www.zend.com/en/products/server/">Zend Server</a> and can be easily made available to all provisioned sites. This tutorial illustrates how to setup <a href="http://www.christophdorn.com/OpenSource/#FirePHP">FirePHP 1.0</a> for all virtual hosts on a <a href="http://www.zend.com/en/products/server/amazon/">Zend Server AMI</a> on <a href="http://aws.amazon.com/ec2/">Amazon EC2</a>.
</blockquote>
<p>
He steps you through the process of getting FirePHP installed and working in your browser as well as pulling the "firephp.phar" file in on the Zend Server side. Configuration is pretty simple - the lines for the Apache config are included and the JSON needed to make the credentials for FirePHP are too. A simple test script is created and an auth key is set and you should be up and running.
</p>]]></description>
      <pubDate>Thu, 06 Jan 2011 09:43:01 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Christoph Dorn's Blog: FirePHP on Magenting]]></title>
      <guid>http://www.phpdeveloper.org/news/15596</guid>
      <link>http://www.phpdeveloper.org/news/15596</link>
      <description><![CDATA[<p>
<i>Christoph Dorn</i> has <a href="http://www.christophdorn.com/Blog/2010/12/17/firephp-on-magenting/">a new post</a> to his blog today about using the <a href="http://www.firephp.org/">FirePHP</a> extension for Firefox/FireBug to help debug applications running on the <a href="http://magenting.com/">Magenting</a> service.
</p>
<blockquote>
<a href="http://www.firephp.org/">FirePHP</a> can be useful when debugging remote PHP applications on shared or dedicated servers. This tutorial illustrates how to setup <a href="http://www.christophdorn.com/OpenSource/#FirePHP">FirePHP 1.0</a> on <a href="http://magenting.com/">Magenting</a> which is a managed <a href="http://www.magentocommerce.com/">Magento</a> hosting service. Go to http://magenting.com/ and create an account. This tutorial was prepared by using a Spark account, but it should work just the same with all plans.
</blockquote>
<p>
He walks you through all the steps you'll need - getting the FirePHP extension installed, getting the PHP libraries set up on the remote server and configuring it to work with your application. A snippet of code is included that can be used to test the connection.
</p>]]></description>
      <pubDate>Fri, 17 Dec 2010 10:08:47 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Christoph Dorn's Blog: FirePHP 1.0 in 5 Steps]]></title>
      <guid>http://www.phpdeveloper.org/news/15510</guid>
      <link>http://www.phpdeveloper.org/news/15510</link>
      <description><![CDATA[<p>
<i>Christoph Dorn</i>, author of the <a href="http://upgrade.firephp.org/">FirePHP tool</a> for interfacing your PHP applications directly with Firebug, has <a href="http://www.christophdorn.com/Blog/2010/11/29/firephp-1-0-in-5-steps/">written up a guide</a> to help you get started using the latest version in five easy steps.
</p>
<blockquote>
Get started with <a href="http://upgrade.firephp.org/">FirePHP 1.0</a> in 5 steps. Why upgrade? Check out the <a href="http://www.christophdorn.com/Tools/">new features</a>.
</blockquote>
<p>The steps are simple (it's a pretty easy tool to use):</p>
<ul>
<li>Install the <a href="http://www.christophdorn.com/Tools/#FirePHP%20Companion">FirePHP Companion</a>
<li>Install <a href="http://reference.developercompanion.com/#/Tools/FirePHPCompanion/Introduction/">FirePHP</a>
<li>Use the sample code to include in an application
<li>Authorize the client
<li>Log a test message (code snippet included)
</ul>
<p>
You can find out more about the FirePHP project on <a href="http://firephp.org">the project's site</a>.
</p>]]></description>
      <pubDate>Tue, 30 Nov 2010 08:23:59 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Four Sane Solutions for PHP Debugging]]></title>
      <guid>http://www.phpdeveloper.org/news/15388</guid>
      <link>http://www.phpdeveloper.org/news/15388</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new article from <i>Jason Gilmore</i> sharing what he calls "four sane solutions" to help you debug your PHP applications better than just an <a href="http://php.net/echo">echo</a> or <a href="http://php.net/var_dump">var_dump</a>.
</p>
<blockquote>
Few tasks are more tedious and frustrating than debugging a Web application. [...] Fortunately, PHP developers have a number of powerful debugging solutions at their disposal. Whether you're merely inspecting array contents or attempting to determine the status of an Ajax-driven POST response, these four solutions are guaranteed to have an immediate impact on your productivity.
</blockquote>
<p>
His four solutions involve changing the error reporting level on your development environment higher than production to catch issues that might slip through unnoticed, using <a href="http://xdebug.org">XDebug</a>, integrating <a href="http://www.firephp.org/">FirePHP</a> and using <a href="http://www.webopedia.com/TERM/T/test_driven_development.html">test-driven development</a> to be sure things work from the outset.
</p>]]></description>
      <pubDate>Fri, 05 Nov 2010 08:41:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christoph Dorn's Blog: TIP: FirePHP data volume filtering]]></title>
      <guid>http://www.phpdeveloper.org/news/15293</guid>
      <link>http://www.phpdeveloper.org/news/15293</link>
      <description><![CDATA[<p>
<i>Christoph Dorn</i> has <a href="http://www.christophdorn.com/Blog/2010/10/15/tip-firephp-data-volume-filtering/">posted a tip</a> for those using the <a href="http://www.firephp.org/">FirePHP</a> tool in their debugging - a way limit the output results (like only part of a huge array of database results).
</p>
<blockquote>
Array and object values may contain a lot more data as FirePHP traverses them (all array elements and object members) until the complete or maximum depth is reached. This is also true when logging exceptions and traces where all function and method arguments are also traversed. The data volume can quickly grow to megabytes which has fatal consequences for transmission of the debug data to the client and the client being able to render it.
</blockquote>
<p>
The <a href="http://www.firephp.org/HQ/Use.htm">FirePHPPCore API</a> gives you a way to set this maximum depth level bu setting either a "maxArrayDepth" or "maxObjectDepth" on the FirePHP object before sending it out to the logger. There's also a handy feature that, instead of limiting the depth, can filter out just the elements you're interested in. Code snippets for this and a Zend_Log_Writer_Firebug example are all included.
</p>]]></description>
      <pubDate>Mon, 18 Oct 2010 09:57:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christoph Dorn's Blog: Gain insight into your cache interaction with FirePHP Companion]]></title>
      <guid>http://www.phpdeveloper.org/news/15017</guid>
      <link>http://www.phpdeveloper.org/news/15017</link>
      <description><![CDATA[<p>
<i>Christoph Dorn</i> has <a href="http://www.christophdorn.com/Blog/2010/08/24/gain-insight-into-your-cache-interaction-with-firephp-companion">a new post</a> about using his recently released <a href="http://companion.firephp.org/">FirePHP Companion</a> to get a better perspective on how your application works with its cache (information like the location of the cache file).
</p>
<blockquote>
I thought I would rework the example I included in my <a href="http://www.christophdorn.com/Blog/2009/04/03/how-to-integrate-firephp-for-ajax-development/">php|architect</a>  article. You will see how much easier it now is to accomplish the same, and with much less code, using FirePHP Companion instead of the <a href="http://www.firephp.org/">existing FirePHP extension</a>.
</blockquote>
<p>
In his example he has a site with an RSS feed that's cached and compares the <a href="http://www.christophdorn.com/Blog/2009/04/03/how-to-integrate-firephp-for-ajax-development/">old way</a> of doing things to the simpler, easier way to use the features the Companion offers to record the process the script takes to build the feed and pushes the results back out at the end of the script.
</p>
<p>
A screencast is included in the post to show you how his example PHP code and the plugin all fit together.
</p>]]></description>
      <pubDate>Wed, 25 Aug 2010 11:21:54 -0500</pubDate>
    </item>
  </channel>
</rss>
