PHP Introduction: What is PHP?

The PHP:- Hypertext Preprocessor (PHP). An alternative explanation is that the initials come from the earliest version of the program, which was called Personal Home Page Tools. PHP is a programming language that allows to web developers to create dynamic content websites that interacts with databases php my admin.

PHP is basically used for developing web based software applications and Websites for all types of webpages like Content base or Applications or Shopping Cart.

This webextensionline website web tutorial helps to all to build your base with PHP nad Learn PHP.

The PHP development team announces the immediate availability of PHP 5.6.1.

Latest PHP Version is : PHP 5.6.1

For source downloads of PHP 5.6.1 please visit our downloads page here  Downloads

For source downloads of  XAMP here  XAMPP Downloads

About PHP

First time PHP started out as a very small open source web project that evolved as more people found out and analysie how useful this php was. Rasmus Lerdorf unleashed the 1st version of PHP way back in the year of 1994.

Abbravation of PHP is a recursive acronym for “PHP: Hypertext Preprocessor“.

PHP is a server side scripting language that is embedded in HTML using this we can develop beautyful web pages. This PHP is used to manage dynamic content websites, databases, session tracking, even build entire e-commerce sites websites like online shopping cart to sell products in online.

This PHP is integrated with a number of popular databases like, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.

PHP is pleasingly zippy in its execution, especially when compiled as an Apache module on the Unix side. Database The MySQL server, once started it , executes even very huge complex queries with huge result sets in record-setting time.

PHP supports a large number of major protocols those are POP3, IMAP, and LDAP. PHP4 added support for Java and distributed object architectures (COM and CORBA), making n-tier development a possibility for the first time.

PHP is forgiving: PHP language tries to be as forgiving as possible.

PHP Syntax is C-Like Language

Common uses of PHP:

  • PHP performs system functions, i.e. from files on a system it can create, open, read, write, and close them.
  • PHP can handle forms, i.e. gather data from files, save data to a file, thru email you can send data, return data to the user.
  • You can add, delete, modify elements within your database thru PHP.
  • Access cookies variables and set cookies.
  • Using PHP, you can restrict users to access some pages of your website.
  • It can encrypt data.
  • Characteristics of PHP

Five very important characteristics make PHP’s practical nature possible:

  1. Simplicity
  2. Efficiency
  3. Security
  4. Flexibility
  5. Familiarity
  6. Reduce the time to create large websites.
  7. Open up thousands of possibilities for online tools
  8. Write dynamically generated pages quickly

First Steps to Create Simple PHP File

“Hello webextensionline” Script in PHP

To get a feel for PHP, first start with simple PHP scripts. Since “Hello, World!” is an essential example, first we will create a friendly little “Hello, webextensionline” script.

As Discussion in earlier, PHP is embedded in HTML. That means that in amongst your normal HTML (or XHTML if you’re cutting-edge) you’ll have PHP statements like in this format.

To write this simple code you have to use editors like Dreamweaver or Edit Plus or Notepad.

Open Your Editor Dreamweaver and write these simple steps

Once completed this lines of code in your editor just save it in your root path with file name as test.php


To run this php file just start xamp server and  type this file in localhost server in browser like Firefox or chrome any browser.



<title>Hello webextensionline</title>
<?php echo “Hello, webextensionline”;?>
This PHP file will produce following result when your execute this in your XAMP server:

Out Put is:

PHP Code out put hello-webextensionline

PHP Code Output Hello, webextensionline


Hello, webextensionline
If you observe the HTML output of the above simple example, you’ll notice that the PHP code is not present in the file sent from the xampp server to your Web browser. All of the PHP present in the Web page is processed & stripped from the page; the only thing returned to the client from the Web server is pure HTML output.

Every PHP code must be included inside one of the three special markup tags ate are recognized by the PHP Parser.


<?php ?>

Star Tag is:  <?php

End Tag is:  ?>

PHP code is must be inside these start and end php tags


<?php PHP code goes here ?>   Using Php Tags

<? PHP code goes here ?> Using Tags

<script language=”php”> PHP code goes here </script>   using script


You must be logged in to post a comment Login