Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Difference Between POST and GATE Methods

Difference Between POST and GATE method:


  • GATE method is a Unsecure while POST method is Secure.

  • GATE method is not secure because that can pass inside a URL . POST method is secure because That can pass   inside  background.

  • Range of GATE method is 255 character in URL, While Unlimited Range of POST method.

  • Accessing GET method using $_GET[ ] Server Variable. Assessing POST method using $_POST[ ] Server Variable.

Simple Program

Simple  PHP Program For Begineers:


1.



OUTPUT:   Hellofriends
                      Hellofriends
                      Hello  friends

2.Write a program to calculate addition, multiplication, substration and division.





OUTPUT:       Addition : 40
                      Substration: -20
                      Multiplication: 300
                      Division: 0.33333333333333

2.Write a program to get value from user and fetch  that value .




OUTPUT:

2.Write a program to get value from user and fetch  that value  Using POST method.



OUTPUT:



Introduction Of PHP

 

Introduction Of PHP



PHP is very popular language used to make dynamic website. With the help of PHP we can make any type of  dynamic website. PHP is most popular because it is easy to learn and Free of cost.

  • PHP stand  for Personal Home Page  OR  Hypertaxt Processor.
  • PHP is a server side language.
  • PHP is Dynamic Language.
  • PHP is a open source.
  • Apache is a PHP server name.
  • PHP is based on LINUX OS.
  • PHP/FI was created by Rasmus Lerdoref  in 1995.
  • PHP is used to make dynamic website(Run Time chanege).
  • Advantage of php is  free of cost, easy to use, HTMP support.

Syantx Of PHP:



Output:

    Hwllo,World  
   Hello 

Variable Diclaration:

Syntax: $ variable_name = " data";

  • Let's see the sample program for batter understanding.




OUTPUT: 
 Hellofriends
              
In above program we make 2 variable $a and $b. And print that variable.