PHP

PHP Tutorial Simple And Easy Learning

PHP Cluster
PHP Tutorial

PHP is a server side scripting language which is used to create and develop dynamic websites which allows to connect with database. PHP stands for Hypertext Preprocessor , it means that after process of execution of php code it returns the output in form of hypertext. PHP is embedded into html to develop a web page dynamically with extension of pagename.php .

PHP have many more inbuilt functions which makes coding approach very easy to use.

 

Characteristics of PHP

• Simplicity
• Flexbility
• Efficiency
• Security
• Familiarity
PHP is a server side scripting language which is embedded into HTML webpage.

Common uses of PHP

PHP can handle forms mean that it use to send data using form and to retrieve.
PHP perform system function. It can create file ,read, write and close them from a file of system.
Add, delete and modify your database using PHP.
Using PHP restrict a user to access your specific webpage which you want.
It is able to encrypt and decrypt data.

Print hello world in PHP

Let us start with simple php program Hello World.
As we told you earlier, PHP is embedded into HTML webpage.
<html>
<head>
<title>Hello World – PHP Cluster</title>
<body>
<?php echo “Hello, World!”;?>
</body>
</html>

 

 

Overview of PHP Syntax

Now you will get Very basic idea of PHP which will make your foundation strong.
The PHP parsing engine needs a technique to differentiate code of php from other element of webpage. The mechanism used for this is known as “escaping to php”. There are four ways:
Canonical PHP tags:

<?php ……………………….?>

Short-open (SGML-style) tags:

Short open tags look like this as shown below

<? ……………………………………?>

ASP-style tags:

<%………………………..%>

HTML script tags:

<script language=”PHP”>……………………………………………………………………………………………………..</script>

Comment PHP Code

There are mainly two types of comment are used in PHP language
1) Single line comment
2) Multiple line comment

Leave a Reply

Your email address will not be published. Required fields are marked *