PHP (English Tuto)

PHP

PHP is a powerful tool for making Dynamic and interactive Web pages. it's widely use, free and efficient alternative to competitiors such as Microsoft ASP.


What is PHP ?
  • PHP stands for PHP hyper text processor.
  • I is server side language.
  • PHP scripts are executed on the server.And PHP suports many data base (My SQL , Informix , Oracle).
  • PHP is an Open source Software

What is PHP  File?
PHP files can contain text , html tags and scripts. They are  returned to the browser as plain html. PHP files have a file extention of " .php " , " phtml "...


Why PHP ?
  • PHP runs on different platforms ( Linux , Unix , Windows )
  • PHP is compatible with almost all servers used today ( Apache , IIS )
  • PHP is free to download from the official PHP site ( http://www.php.net/ )

Basic PHP Syntax.

<html>
<?php
--------------------
--------------------
--------------------
--------------------
?>
<html>


We Will Create First PHP Program
Question 01 :  Write a php program to execute "Hello PHP" ?

First of all open any php editor ( Dreamweaver ). i'll use to notepad.

1) echo
echo tag use to prin any one in php ( Like as "System.out.println" Java )

< html >
< head >  < title > My First PHP Program </title> < /head>
  < body >

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

  </body >
< / html >

Now your file save to use .php extention.then your file run usig local server.
I use to Wamp server to run php file

  • First of  all open wamp server
  • Then Your php file move to www directory





  • Then select Local host & Select your.after compile it.

0 comments:

Post a Comment