PHP Introduction


PHP Introduction :– PHP is a server-side scripting language designed primarily for web development but also used as a general-purpose programming language. Originally created by Rasmus Lerdorf in 1994, the PHP reference implementation is now produced by The PHP Development Team. PHP originally stood for Personal Home Page, but it now stands for the recursive acronym PHP: Hypertext Preprocessor.

PHP code may be embedded into HTML or HTML5 markup, or it can be used in combination with various web template systems, web content management systems and web frameworks. PHP code is usually processed by a PHP interpreter implemented as a module in the web server or as a Common Gateway Interface (CGI) executable. The web server software combines the results of the interpreted and executed PHP code, which may be any type of data, including images, with the generated web page. PHP code may also be executed with a command-line interface (CLI) and can be used to implement standalone graphical applications.

PHP is server side scripting language which runs only on php enabled server like Apache web server or Apache Tomcat, It is used to create dynamic web pages. PHP is open source so you can use it fre of cost. Here in this tutorial we are going to explain the core php basic and advance concept. We will explain each topic with multiple examples.

Devised in 1994 by programmer Rasmus Lerdorf, PHP goes beyond and supplements HTML in several ways. The script can perform complex calculations such as providing date ranges through to figuring out mathematical equations; it is adept at collecting user information such as address data; and crucially PHP interacts with databases, allowing for the creation of web pages that utilise database contents to create page content.

Perhaps the most notable example of the use of PHP comes in the shape of Facebook. Mark Zuckerberg and his programming peers were huge fans of PHP’s flexibility, and the website still uses this scripting foundation today.


PHP Simple Program | Example

The current stable version of PHP is 7.1.4. We will also cover PHP 7.1.4 changes and concepts in this tutorial. PHP is very easy and simple to Learn.

Let us create first example in PHP-

PHP Hello World Program Example:

<?php echo "Hello World!"; ?>

If you run the above example it will produce output something like this-


Advertisements

Add Comment

📖 Read More