spacer
Web Development Blog
 Developer Newsletter

Webmaster Blogs
Content & Blogging
Design
Photoshop
General
JavaScript
PHP
PHP Functions
Web
WordPress
Website Promotion

Blog Archives


Developer Tutorials
AJAX
ASP
CGI & Perl
CSS
Flash
HTML
Illustrator
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML
Miscellaneous

Scripts Directory
AJAX Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Web Hosting Directory
ASP.NET
Budget
Dedicated Servers
Ecommerce
Linux
Resellers
Shared
Small Business
Windows

Webmaster Blog

The ultimate PHP web development environment, part 1

UPDATE: Part 2 now available.

After you’ve been coding PHP for a while, you start to work out what the tools of the trade are, which applications can help you work more effectively, and essentially how to get things done. While developing, your environment is crucial: not having the right tools to do your job can be a serious impediment on productivity. In this new series, I’ll help you bring together the ultimate PHP web development environment.

In part 1 of this series, we’ll start with the usual suspects: software. The software you use can make or break your project; not being able to debug code, for instance, can double the time taken to complete a project. Here I’ll be covering software for Windows users, but many of the suggestions here are relevant for OS X and Linux users as well.

Web browsers

We could have started with the IDE, but your web application doesn’t end at the IDE. In fact, a sufficiently low-featured IDE can help your project if coupled with a decent browser. The web browsers - yes, browsers, not just one browser - you use are arguably the most important part of your arsenal. A sufficiently powerful web browser can make pulling an application interface together extremely fast, while an outdated and inflexible browser can cause endless grief. Remember, you’re a web developer, and your web browser is your window into the world you work in.

Firefox is pretty much assumed here. If you’re developing web applications with PHP and you aren’t using Firefox, you’ve either got a fantastic home-brew browser that does everything you need, or you’re developing much slower than you should be, most likely the latter. Using Firefox is especially important for rich internet applications, where the focus shifts considerably to Javascript and HTML/CSS.

I’m not trying to be an open source fanboy here - no other browser will allow you to debug javascript as it happens, add new javascript in while debugging, totally recreate the DOM of the page the javascript is working on while editing the javascript while debugging etc. etc. The key to Firefox is the wide variety of web development extensions available. No matter what platform you’re on, grab a copy of Firefox, then install Firebug, Live HTTP Headers and Web Developer. Have a look through each of these and you’ll realise just how much power they offer. FirePHP is also fantastic.

Of course, you can’t just work with one browser all the time. Given IE’s dominance, a copy of Internet Explorer 7 and regular rendering tests of your applications on it should be taken for granted. Once you’ve got IE7, take a look at the IE Developer Toolbar too; you might be pleasantly surprised at how much power IE web developers have as well (although nowhere near as much as Firefox).

And finally, given IE8 is going to be highly standards compliant, having a stable standards compliant web browser might be an idea for future-proofing your application. Ironically, the best browser for this is Apple’s Safari. Safari uses the WebKit rendering engine, which is not only far more standards compliant than Firefox, it’s also considerably faster. Under Windows, Safari isn’t a very good idea for standard web browsing given some past security concerns, but checking your applications render fine on Safari is definitely a good idea for future proofing your application.

Editor

Okay, I’m putting this out here right now: it doesn’t matter what IDE you use, as long as it has a debugger. This limits your options considerably; for Windows, the best way to get an IDE with a debugger is to get yourself a copy of PHPEdit or PhpEd. A number of other IDEs offer inbuilt debuggers, but none manage the simplicity and ease of use as these two, especially PhpEd. And it just so happens that both PHPEdit and PhpEd have syntax highlighting, code completion, CVS integration and all the usual features you’d expect to get out of an IDE.

It’s worth mentioning Zend’s Zend Studio and Zend Studio for Eclipse, as these are by far the best editors available for simply coding PHP, especially the original Zend Studio. The code intelligence is second to none, code completion is the most helpful of any IDE I’ve ever seen and the full-on feature set is ideal for any web developer. However, Zend Studio has two strikes against it: first, it uses Java, and second, the debugger is very complicated to setup (I think it needs a seperate product altogether, Zend Studio Server, although after hours of searching I simply could not work this one out). The problem with using Java is that the editor is very slow; in my tests, it started using 250MB of memory after working with some code for an hour, and it also slowed to a crawl. Think three second lags just to open context menus or expand a filesystem tree; five seconds to open a new (1KB!) file and fifteen seconds to switch to the inbuilt web browser. You’ve got work to do.

For a more comprehensive, albeit less detailed, roundup of IDEs, check out this article on IBM’s Developer Works.

To complement your IDE, and for quick code edits and tests, grab a copy of Notepad2 as well, and remember that if your PHP binary is in your system PATH you can test out code interactively just by running php -a through Start > Run (also winkey + R).

That’s all, folks!

That’s all for browsers and editors today; in the next part of this series, I’ll take a look at configuring PHP and various other software and some Linux editors and utilities.

Tags: , ,


Related Posts
» The ultimate PHP web development environment, part 2
» PHP 6 now with .net: Visual Studio integration available already
» Rails vs. PHP: Fair Comparison?
» Paul Reinheimer’s PHP Contest
» Scoring a freelance PHP job
 


2 Responses to “The ultimate PHP web development environment, part 1”

  1. IE7: Developer plugins? What do you use? - Web Development Forum Says:

    […] may be interested in my blog post on The ultimate PHP web development environment - IE7 is great, and the Internet Explorer Developer Toolbar has a lot of the Firefox Web Developer […]

  2. The ultimate PHP web development environment, part 2 Says:

    […] the part 1 of this series, I looked at the web browsers and (Windows) IDEs. Today I’m going to look at a local […]

Leave a Reply





About the NetVisits, Inc Network | Write For Us | Advertise
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: