PHP second only to Java, according to Google Trends

March 17th, 2008 by Giles Smith

Php-Java

View Full Report

I spend the majority of my time developing web software in PHP, so it’s good to see PHP dominating over the other web languages. The only contender is Java, but a comparison using Google Trends isn’t really fair as the results would incorporate searches for the coffee company, or even the island…

Anyway, I have nothing more to say on the matter.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Ajax File Uploading

November 3rd, 2007 by Giles Smith

This is something that I have been trying to get working for a few months now, but haven’t come up with a stable enough solution to use commercially. As we all know Javascript can be a pain in the ass to debug sometimes, but Shahryar Ghazi has come up with a pretty reasonable workflow using the Dojo Framework for AJAX and PHP.

Full Tutorial

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Zend Developer Zone | The Best Tool For The Job: OO versus Procedural Programming in PHP

May 15th, 2007 by Giles Smith

Quote

Introduction
“True genius resides in the capacity for evaluation of uncertain, hazardous, and conflicting information.” (Winston Churchill)

In PHP, unlike many other languages, you can choose between using an object oriented (OO) or a procedural approach. Most PHP programmers use a procedural approach by default, since web pages themselves operate in a very procedural way (this tag, then this tag, then this tag). Interspersing procedural code with HTML is more straightforward, and so PHP programmers often develop their own style, based on this approach.

If you are new to PHP, procedural programming is probably the only kind of programming you are familiar with. However, if you have been exploring the PHP community for best practices, by now you have probably seen posts in forums and newsgroups about “object bloat”. You have probably also seen tutorials on how to write object oriented code in PHP. You may have downloaded libraries that employ classes, and learned to instantiate their objects and use their methods. Yet it is quite possible that you have never really understood when, where, or why it is appropriate to use an object oriented approach.

There is a certain amount of ranting on both sides of the issue, and slogans such as “Objects are bad!” or “Objects are good!” are sometimes heard. This article does not attempt to decide between the two approaches and come up with a single “best practice”, but to explore the advantages and disadvantages of each.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]