Introduction to PHP5 How to use php in HTML document?

Definition Of PHP

PHP hypertext preprocessor is defined as an HTML-embedded scripting language that is used to write web pages. An example of PHP is a script that displays the date in a website.

PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft’s ASP.

Example:-

PHP is an acronym for “PHP: Hypertext Preprocessor”

PHP is a widely-used, open source scripting language

PHP scripts are executed on the server

PHP is free to download and use

PHP scripts are executed on the server.

PHP is an popular language

It is powerful enough to be at the core of the biggest blogging system on the web For Example WordPress.It is deep enough to run the largest social network For ExapmpleIt is also easy enough to be a beginner’s first server side language!

History of PHP:-

The code got another complete makeover, and in April of 1996, combining the names of past releases, Rasmus introduced PHP/FI. This second-generation implementation began to truly evolve PHP from a suite of tools into a programming language in its own right. It included built-in support for DBM, mSQL, and Postgres95 databases, cookies, user-defined function support, and much more. That June, PHP/FI was given a version 2.0 status. An interesting fact about this, however, is that there was only one single full version of PHP 2.0. When it finally graduated from beta status in November, 1997, the underlying parsing engine was already being entirely rewritten.Though it lived a short development life, it continued to enjoy a growing popularity in still-young world of web development. In 1997 and 1998, PHP/FI had a cult of several thousand users around the world. A Netcraft survey as of May, 1998, indicated that nearly 60,000 domains reported having headers containing “PHP”, indicating that the host server did indeed have it installed. This number equated to approximately 1% of all domains on the Internet at the time. Despite these impressive figures, the maturation of PHP/FI was doomed to limitations; while there were several minor contributors, it was still primarily developed by an individual.

PHP File:-

PHP files can contain text, HTML, CSS, JavaScript, and PHP code

PHP code are executed on the server, and the result is returned to the browser as plain HTML