PHP is a widely-used general-purpose scripting language that is especially suited for web development and can be embedded into HTML. It generally runs on a web server, taking PHP code as its input and dynamically creating web pages as output. It can be deployed on most web servers and on almost every operating system and platform. PHP is an open source project, and is installed on more than 20 million websites and 1 million web servers. It is also the most popular Apache module among computers using Apache as a web server.
There are a few reasons why PHP is the best solution for web applications. It was created for the web – PHP started as a collection of C applications that the author wrote for use on his own web site. It evolved into a server-side scripting language built for building logic into web pages. This single-mindedness in design has resulted in a language that is both flexible and streamlined for use on the web. It’s cross-platform – PHP runs on UNIX, Linux, Mac OSX, and Windows. In addition to being cross-platform, it has built in functions for connecting to most popular database, including general ODBC connections.