• Thumbnail
  • Thumbnail
  • Thumbnail
  • Thumbnail
  • Thumbnail

Remote Debugging PHP on Mac OS X using xdebug and MacGDBp

A debugger is one of the most powerful development tools available. However, with PHP, debugging a site can be tricky. A lot of times, the host you need to debug is remote. Xdebug, the PHP debugger, solves this problem with their remote debugging feature.

Unfortunately, getting remote debugging with xdebug setup on Mac OS X can be a little tricky. This tutorial will help you setup your environment for easy remote debugging using Xdebug and MacGDBp.

Read More

PHP 5.3 and ?goto?

PHP 5.3 came out recently. For better or worse, the great PHP gods decided it would be a good idea to add 'goto' to the language. Up until now, PHP has never had 'goto'. The question I've been bouncing around in my head is "Why?!". In my 15 years programming (yes I really have been programming since the age of 10), I don't think I have ever used a "goto" statement in a real program. Maybe in my first Hypercard stack, or using Basic in my 7th grade computer class, I may have.

My stance has always been, and will always be, 'goto' is a crutch for the lazy. It enables bad design. Sure, it might be easier to code one rare algorithm using a 'goto' statement. This is not the majority. The majority of algorithms can be implemented without 'goto', it just takes more thought.

Read More