beanz Magazine


yukop on Flickr

From a simple website activity application written in the C language in 1994, the PHP programming language has evolved into a robust language optimized for web servers and web applications.

The origins of PHP are humble. What started as a set of small scripts to count visits to an online resume, coded in 1994, has become one of the more popular programming languages, PHP. The original version of the language was not a language. It was a set of code compiled into a C binary file to sit on a web server and process website activity data sent to it. The name PHP then translated to Personal Home Page Tools, or PHP Tools.

The original creator of PHP, Rasmus Lerdorf, a Danish programmer, then evolved PHP into a more robust CGI or Common Gateway Interface tool. At the time, CGI was the primary way to make websites interactive, especially with the submission and management of form data. The PHP code was made publicly available and others began to work the code into more and more of a language.

With PHP 3.0, in 1998, two programmers in Israel, Andi Gutmans and Zeev Suraski, approached Lerdorf and together they started to rewrite PHP into a true programming language. The name changed from Personal Home Page Tools to FI (Forms Interpreter) to PHP/FI then finally PHP: Hypertext Pre-Processor (PHP), the current name. Throughout its development, PHP has retained its connection to web pages and web servers. It's used primarily to create web-based applications and websites.

What Makes PHP Special?

PHP is an extremely common programming language used in many open source software programs. While it has its detractors, the language offers a lot of useful features for web applications. Once installed on a web server, the PHP modules process web page code and, when PHP code is found in the web page code, the modules process the PHP. For example, the code might make a call to a database to find all stories tagged with a category ID then display the results of the database call as an HTML table or as a list of stories with linked headlines.

The PHP language can output HTML and other media types, for example, Excel, PDF, and XML on the fly. The language also works with a wide range of databases. And coding can be procedural, a step by step list of actions for the application to perform, and/or object oriented, with code built on objects not procedures or actions. PHP also includes a wide range of data types and other typical components included in programming languages.

It's a fairly easy language for non-programmers to learn, especially designers and do it yourself programmers. For example, WordPress is an open source publishing tool written in PHP. Many designers and web producers learn PHP by adapting the WordPress template code used to create then display web pages. From that start, they migrate to more complicated coding in PHP, within WordPress and beyond.

Because PHP is used widely, the main site has extensive documentation for the language and many software forums include sections to answer PHP-related questions. In addition, open source projects like WordPress also have support forums to answer problems that involve PHP. The support network for the language is extremely deep.

How is PHP Used?

For web designers and producers, PHP is an easy extension of the HTML and CSS code they learn while creating static web pages. The language is used extensively in open source web projects which makes it easy to learn the language and contribute to projects. PHP is less used, or not optimal for, creating desktop applications. However, it does run on almost all major operating systems on desktops and servers.

Learn More

About PHP

Popular PHP Open Source Projects

Also In The August 2013 Issue

An Interview with Troy Hunt

Troy Hunt is a software architect and Microsoft Most Valued Professional (MVP) focusing on security concepts and process improvement in a Fortune 50 company. He's based in Australia.

1Password, LastPass, RoboForm

If you use a password you created that is less than eight characters, your password is vulnerable to hacking. Here are three ways to create and use secure passwords online.

How to Write Secure Code

Coding securely doesn't have to kill the joy of programming. In fact, learning how to code securely provides insights into languages and computing.

How to Code HTML Email

How to code an HTML email like the ones you open every day turns out to be an offbeat software coding challenge.

What is an SSL Certificate?

How to tell if a web page is secure is one of the most basic yet least obvious ways to protect your data online.

Where to Find Command Line Interface Software

One key computing skill is the ability to use command line interface (CLI) software to enter commands to control a computer. Here are some options.


Lua is a comparatively simple programming language used in a wide range of places, from digital TVs to video games to phone applications. It's also designed to be simple to use and lightweight.


Here is how three programming languages handle a common problem: how do you organize and keep track of useful data?

Linux Command List for Command Line Interfaces

Some of the most common commands you'll need for a command line interface (CLI), in a Linux command list.

Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter.

News Wire Stories for October 2013

Must read stories about computer science, software programming, and technology for September 2013.

Learn More Links for October 2013

Links from the bottom of all the October 2013 articles, collected in one place for you to print, share, or bookmark.