From simple scripts to enterprise-class Web applications, PHP is one of the most popular programming languages in the world.
PHP is highly recommended for web applications due to following advantages:
- Reduces development cost as it is open source.
- PHP can be deployed on almost any system (e.g. Microsoft IIS, Apache etc).
- Deployment is very easy and cost of hosting is on the lower side.
- PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.).
PHP combined with MySQL are cross-platform (you can develop in Windows and serve on a Unix platform).
Being web-oriented, PHP also contains all the functions to do things on the Internet - connecting to remote servers, checking email via POP3 or IMAP, url encoding, setting cookies, redirecting, etc.
In addition to manipulating the content of your pages, PHP can also send HTTP headers. You can set cookies, manage authentication, and redirect users. It offers excellent connectivity to many databases (and ODBC), and integration with various external libraries that let you do everything from generating PDF documents to parsing XML.