I’ve learned more programming languages than I care to remember over the years. Some I still have night terrors over (RPG II anyone?) and some I remember warmly and wish had not gone by the wayside. AREXX always comes to mind, for any out there with as fond memories of the Amiga as I have.
The main thing that keeps coming through is the old adage that the more things change, the more they stay the same. Features and usefulness can vary wildly form one language to the next, but the core principles of programming seem to remain static, even if the names change. Paradigm methodologies like Object Oriented Programming change the steps taken to perform a task, but the task remains the same.
PHP has become my personal favorite for web programming over the years. All languages have strengths and weaknesses, but for my purposes, PHP offers the best balance of power, scalebaility, and ease of deployment.
1. Open Source and free
PHP (which originally was an abbreviation for “Personal Home Page” ) is free, and is covered by the PHP License. Nearly every hosting provider can offer you some degree of PHP functionality.
2. Designed for websites
If you already have a website and are familiar with HTML, stepping up to PHP is easy. PHP and HTML code can be intermixed in the same file. PHP adds the potential for almost unlimited functionality to your site, but the basic appearance is still all created in HTML.
3. Easy to learn and use
For basic tasks, the PHP language is easy to learn and implement. The language has a vast library of powerful functions that you’ll find yourself using as your skill level grows.
4. Tons of existing scripts
One of the best ways to start learning any programming language is to first see how others achieved what you hope to do for your site.
A search for “PHP scripts” on any search engine will return a large list of sites with existing code examples to get you started.
5. Plenty of help and resources
Along with the aforementioned scripts, you’ll find loads of tutorials, discussions on potential errors, tips and tricks, and more available to you with a simple search.
The official PHP home site should be at the top of your list. There is a huge online user manual complete with function list, code examples and discussions.