FirePHP: a quick start guide
FirePHP is a useful tool that allows developers to output PHP debug messages directly into Firebug, so they’re displayed just like JavaScript console messages. This guide assumes you’re using Firefox with the Firebug extension already installed. Setting up FirePHP With Firefox open, click Tools > Add-ons then search for “FirePHP” within the Get Add-ons tab and install the extension as usual. Once it’s installed, and Firefox has restarted, open the Firebug window using the icon at the bottom-right of Firefox. Click on the Console and Net panels to ensure...
Read MoreDetecting your environment using server variables
This article explains how you can use server variables to run websites on multiple servers without having to manually reconfigure key settings. Like many web developers I use a single configuration file to define key website constants (file paths, database login etc.) and that file is included at the top of every page. Many of the constants can be sensitive to the working environment through so I may need one configuration for local development work and another when the website is uploaded to the live server. If you’ve only ever done very basic server-side scripting you may be wondering why...
Read More

