• Home

Logo

Navigation
  • Home
  • Articles
    • Content Writing
    • Design
    • General
    • Internet Marketing
    • Social Media
    • Tools and Tips
    • Usability
    • Web Hosting Articles
  • Tutorials
    • AJAX Tutorials
    • ASP Tutorials
    • C# Tutorials
    • CGI and Perl Tutorials
    • CSS Tutorials
    • Flash Tutorials
    • HTML Tutorials
    • Illustrator Tutorials
    • Java Tutorials
    • JavaScript Tutorials
    • Linux Tutorials
    • Miscellaneous Tutorials
    • MySQL Tutorials
    • Photoshop Tutorials
    • PHP Tutorials
    • Python Tutorials
    • Wireless Tutorials
    • WordPress Tutorials
    • XML Tutorials
  • Scripts
    • AJAX Scripts
    • ASP Scripts
    • ASP.NET Scripts
    • CGI & Perl Scripts
    • Flash Scripts
    • Java Scripts
    • JavaScript Scripts
    • PHP Scripts
    • Python Scripts
    • Remotely Hosted
    • Tools and Utilities
    • XML Scripts
  • Answers
  • Online Services
  • Tools

The ultimate PHP web development environment, part 1

By Akash Mehta | on Mar 13, 2008 | 2 Comments
PHP Tutorials
  • Tweet
  • Share
  • Tweet
  • Share

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.

Share this story:
  • tweet

Tags: php idephp tipsPHP Tutorials

Author Description

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

  1. May 27, 2008

    Josekus Log in to Reply

    dont forget Opera, i comply better with w3c standars and also is Free

  2. August 27, 2009

    Alain Fontaine Log in to Reply

    Hi there,

    To get the remote debugger working with Zend IDE / Studio, you just need to add the debugger extension to your PHP setup by adding a line to php.ini (or equivalent to your setup). That extension is available as a .so file directly from the Zend site. Takes 2 minutes to install! :)

You must be logged in to post a comment.

Connect With Us

RSSSubscribe 1,241Followers 494Likes
  • Popular
  • Recent
  • Comments
  • Creating Energy Spheres in Photoshop

    Apr 15, 2008 - 96 Comments
  • Easy Screen Scraping in PHP with the Simple HTML DOM Library

    Aug 6, 2008 - 20 Comments
  • Calculating date difference more precisely in PHP

    Mar 7, 2008 - 13 Comments
  • When Does Hosting Your Website in the Cloud Make Sense?

    Oct 8, 2010 - 2 Comments
  • Fun with the Microsoft Managed Extensibility Framework Part 2

    Oct 6, 2010 - 0 Comment
  • Fun with the Microsoft Managed Extensibility Framework Part 1

    Sep 22, 2010 - 0 Comment
  • Website Management on the go with the iPad

    I appreciated your post, but I was looking for something I didn't...
    November 24, 2012 - drmoderator
  • Creating Energy Spheres in Photoshop

    I'm a little stuck down here especially at the step of creating the...
    November 23, 2012 - sarah
  • Running background processes in PHP

    Can you give an example? As see it, you can use this only when you...
    November 16, 2012 - Shaked Klein Orbach
Developer Resources
  • Tutorial Directory
  • Learn HTML
  • Learn PHP
  • Learn CSS
  • Learn AJAX
  • Learn JavaScript
  • Learn Pear
  • White Papers
  • Resources
    • NetVisits Web Directory
    • Realtor Pixels
    • Answers On The Run
    • Ask A Geek
  • Recent Posts

    • When Does Hosting Your Website in the Cloud Make Sense?
    • Fun with the Microsoft Managed Extensibility Framework Part 2
    • Fun with the Microsoft Managed Extensibility Framework Part 1
    • Website Management on the go with the iPad
    • Code Contracts in C# 4.0 – Part 1

    Calendar

    May 2013
    M T W T F S S
    « Oct    
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  

    Recent Comments

    • drmoderator on Website Management on the go with the iPad
    • sarah on Creating Energy Spheres in Photoshop
    • Shaked Klein Orbach on Running background processes in PHP
    • Thomas Cuvillier on How To Upload Files Using PHP
    • rizal aditya on Extracting text from Word Documents via PHP and COM
    • Home
    © 2003 - 2013 DeveloperTutorials.com. All Rights Reserved. Privacy Policy.