"✨ 12 years of stories, history, and heritage with kushtiatown.com"

Select your language

What Is PHP?
What Is PHP?

What is PHP

PHP is a programming language. It is used mainly for server-side scripting. PHP is a scripting language designed chiefly for creating dynamic web pages. It includes command-line interface capability and can be used in standalone graphical applications.

Since PHP was in fact invented by Rasmus Lerdorf in 1995, PHP's main application has been managed to this day by the PHP Group and its servers, and PHP is not bound to any fixed boundary of a subject. PHP is a free software under the PHP Licence, which, though restrictive in its use of the term PHP, is compatible with the GNU General Public License (GPL). PHP is a widely used general-purpose scripting language especially suited for web development, and it can be embedded into HTML. It is generally run on a web server, which takes PHP code as input and creates web pages as output. It can be deployed on most web servers and used free of charge on almost every operating system and platform. PHP is in use on more than 20 million websites and 1 million web servers.

History

PHP's creation began in 1994, when it was named Personal Home Page (PHP): Rasmus Lerdorf wrote a series of Common Gateway Interface (CGI) binaries in the Perl programming language, which he used to maintain the homepage of his own personal website. It recorded his CV and web traffic — the number of visitors. Because of the site's performance he rewrote the same scripts anew in C, the programming language, and with that he added the facility to work with web forms and to connect to databases; he named this implementation Personal Home Page, or PHP for short. This is essentially where PHP was born. It is used for creating ordinary, dynamic websites. Then on 8 June 1995 HTML embedding was added to PHP. Version 3 arrived in 1998, PHP 5 arrived in 2004, and at present the latest (stable) version is 7.1 (1 December 2016).

Licence

PHP is a free software released under the PHP Licence, which reads:

Products derived from this software may not be called "PHP", nor may "PHP" appear in their name, without prior written permission from This email address is being protected from spambots. You need JavaScript enabled to view it.. You may indicate that your software works in conjunction with PHP by saying "Foo for PHP" instead of calling it "PHP Foo" or "phpfoo"

This restriction on the use of the name "PHP" is incompatible with the GNU General Public License (GPL).

PHP's contribution

In the present age, PHP is a trusted name for web automation. PHP is a popular programming language whose very beginning was for web development. Day by day PHP's popularity has grown until today its dominance on the web is unrivalled. Nearly 82 per cent of the world's websites (ref: 1) depend on PHP in one way or another. A large part of Facebook is developed in PHP — they are so dependent on it that Facebook itself released a new PHP engine (HHVM) for PHP's development. Wikipedia, too, is developed in PHP. Considering PHP's strong popularity and demand, Google recently added PHP support to its App Engine platform. Where 82 per cent of the web uses PHP, examples can be found in their thousands. So the demand for PHP developers in web-based projects is huge too. The PHP language has been on Earth only a few years. PHP has been called a "Big Boys" language since version PHP 5 arrived, whereas Java, C and such languages had been called "Big Boys" long before. PHP 5 came in 2004 — and with it the game changed. At present nearly 40 per cent of the world's web applications (sites) — about 250 million sites up to 2013 — are built in PHP alone, with all the other languages together making up the remaining 60 per cent.

PHP's advantages

  1. "It supports almost every database": PHP can work with almost every database, including the main five (Oracle, MySQL, PostgreSQL, SQLServer, MongoDB). Integrating any database is not particularly difficult — rather, the drivers of the widely used databases come already set in PHP.
  2. The PHP engine is like the human brain: compared with other languages, PHP's engine is more intelligent. So much so that data types need not be declared here — it looks at the data itself and understands what kind of data it is (a loosely typed language). Besides, types can be cast here, so unexpected errors do not occur.
  3. Support and community: updates of PHP come out quite frequently, and new features are added very quickly. Moreover PHP's users — that is, its community — are very large indeed. If any problem arises and you post a question on some forum, you will get an answer sooner than with any other language.
  4. Easy to learn, and big projects can be built: compared with other languages PHP is easy to learn. Simply write the code inside HTML, put it on a server and run it in the browser — and you can see the output.

Mascot

PHP's mascot is an elephant, designed by Vincent Pontier in 1998.

Add comment
Posting any form of obscene comment is prohibited; doing so will result in legal action.

Subscribe to get the latest updates

About information

Subscribe to our newsletter and stay updated