PHP Tutorial

PHP Tutorial

This page provides a quick overview of PHP

What is PHP?

PHP stands for Hypertext Preprocessor. PHP is a very popular and widely-used open source server-side scripting language to write dynamically generated web pages. PHP was originally created by Rasmus Lerdorf in 1994. It was initially known as Personal Home Page.
The latest version of PHP is PHP7

PHP scripts are executed on the server and the result is sent to the web browser as plain HTML. PHP can be integrated with the number of popular databases, including MySQL, PostgreSQL, Oracle, Microsoft SQL Server, Sybase, and so on.

How Does PHP Work?

PHP scripts are executed on the server before the web page is displayed to the user. The user only sees the end result, which consists of client-side markup and scripts (HTML, JavaScript, CSS, etc). Therefore, the user/browser doesn’t actually see any PHP code. If the user views the source code, all they would see is HTML, JavaScript, CSS, etc – they wouldn’t see any PHP code.
This happens because, whenever the server processes a file with the .php extension, it knows to look for PHP code. When it encounters the PHP code, it processes it. Generally, the same .php file will also have client-side code such as HTML. The server knows to process the PHP bits and output the client-side bits. You, as the programmer, determine which pieces of HTML will be displayed and when. You do this using PHP code.

Comments are closed.

Let's make it official :) Subscribe to my Youtube Channel.