You may be attracted to PHP because it’s free, because it’s easy to learn.
PHP Is Free
As an open source project, PHP makes its innards available for anyone to inspect. If it doesn’t do what you want, or you’re just curious about why a feature works the way it does, you can poke around in the guts of the PHP interpreter (written in the C programming language) to see what’s what.
Even if you don’t have the technical expertise to do that, you can get someone who does to do the investigating for you. Most people can’t fix their own cars, but it’s nice to be able to take your car to a mechanic who can pop open the hood and fix it.
PHP Is Cross-Platform
You can use PHP with a web server computer that runs Windows, Mac OS X, Linux, Solaris, and many other versions of Unix.
Plus, if you switch web server operating systems, you generally don’t have to change any of your PHP programs. Just copy them from your Windows server to your Unix server, and they will still work.
While Apache is the most popular web server program used with PHP, you can also use Microsoft Internet Information Server and any other web server that supports the CGI standard.
PHP also works with a large number of databases including MySQL, Oracle, Microsoft
SQL Server, Sybase, and PostgreSQL. In addition, it supports the ODBC standard for database interaction.
PHP Is Widely Used
March 2004, PHP is installed on more than 15 million different web sites, from countless tiny personal home pages to giants like Yahoo!. There are many books, magazines, and web sites devoted to teaching PHP and exploring what you can do with it.
There are companies that provide support and training for PHP. In short, if you are a PHP user, you are not alone.
PHP Hides Its Complexity
You can build powerful e-commerce engines in PHP that handle millions of customers. You can also build a small site that automatically maintains links to a changing list of articles or press releases.
When you’re using PHP for a simpler project, it doesn’t get in your way with concerns that are only relevant in a massive system. When you need advanced features such as caching, custom libraries, or dynamic image generation, they are available.
If you don’t need them, you don’t have to worry about them. You can just focus on the
basics of handling user input and displaying output.
PHP Is Built for Web Programming
PHP was created from the ground up for generating web pages. This means that common
web programming tasks, such as accessing form submissions and talking to a database, are often easier in PHP.
PHP comes with the capability to format HTML, manipulate dates and times, and manage web cookies — tasks that are often available only as add-on libraries in other programming languages.
If you like this post, don’t forget to share 🙂