What is PHP

Previous Tutorial                                                Next Tutorial

The meaning of PHP is Hypertext Preprocessor. PHP is a server side scripting language. You may  ask me that why PHP is not programming language. I will discuss it but now you need to concentrate on PHP. Server side scripting language means that the language can contact with server and run in the server. PHP language is designed only for this kind of purpose related with web design and development. In our whole tutorial we use the term server that is actually means database and we use PHP-MySQL enable Vertrigo Server.

We use server to store website information. We can show server information via PHP in the HTML page. Where the website information is stored in the database and the database information is displayed in the HTML page we can call this kind of website is a dynamic website. Otherwise if a website information shows only using HTML then we call this type of website isstatic website. So the thing is when we use database then we call it dynamic website and when we do not use database then we call it static website. So we can say that PHP is created for dynamic website development.

PHP was created for web development

PHP was developed for web development and we can embed PHP with HTML. PHP cannot do anything alone. See the following example that describe how we embed PHP with HTML. PHP Embeded with
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>PHP Embeded with HTML</title>

</head>

<body>

<?php

echo "This Programm Show You How PHP embed with HTML";

?>

</body>

</html>

We use <?php and ?> tag to differentiate PHP code from HTML.The PHP code is run on the server. So you cannot see the PHP source code of a site, just you can see the HTML and CSS code. You can consider PHP as a website input and the output is HTML page.
The syntax of PHP is similar to programming languages such as C, Java Programming language. So if you have any idea about programming language, you can easily understand  PHP. But if you have not, no problem. We have good tutorial on PHP, just you need to practice it. See the video tutorial that give you some clear understanding about PHP programming language. 

Video Tutorial: What is PHP Or  PDF Tutorial: What is PHP.pdf 

Comments

Popular posts from this blog

How to construct a B+ tree with example

How to show only month and year fields in android Date-picker?

Visitor Counter Script Using PHP