Download this Blogger Template by Clicking Here!

Ad 468 X 60

Wednesday, 20 March 2013

Widgets

SuperGlobal Arrays In Php Tutorial

SuperGlobal Arrays In Php :


Php Arrays
Php Arrays


There are predefined arrays variables in php. They are called SuperGlobal Arrays. It means that you can get their data in a web page at any place. And for using these arrays globally in the web page, there is no need to add the keyword globe in php. We will discuss arrays in coming tutorials. In this post we will be explaining SuperGlobal Arrays.

Types Of Super Global Arrays And Its Description :


Php SuperGlobal Arrays
Php SuperGlobal Arrays


Array


Description



  • $GLOBALS


It includes and consists of all global scope variables

  • $_SERVER


Data sent by HTTP Response to the server is foung in this address area. The data includes name of running page, name of server, Htto Version Number, Remote Ip Address etc.


  • S_GET


It consists of all querystring variables that are sent along with URL


  • $_POST


Field Area found in related page is stored in this area

  • $_COOKIE


It consists of all data of cookies which is sent to server by the client. It is saved on client machine is for of a file with cookies data. Users are identified with the help of cookies. For example, When you log in to Hotmail then you have to put your ID and Password in a form. This form has a check box which has written that “Remember me on this computer “. When you check this checkbox then your information will be stored in the cookie. Because of this you will not have to enter your email Id and Password again when you login next time in hotmail. Because your information will be automatically retrieved from Cookies.


  • $_FILES


When we upload any file with the help of Post Method then the information of this is stored in $_FILES Array.


  • $_SESSION


It includes all those variables that are made as the session variables.

  • $_REQUEST


It is a 3 in one array. It consists of $_POST, $_GET, $_COOKIES.

In the above table, we have listed superglobal variables. They might look difficult to understand, But actually they are very easy. You will be able to understand them very easily when we will be explaining them with the help of examples. Since it is not possible to explain all these in one post so we will be explaining in next post in detail.


Php SuperGlobal Arrays Tutorial In Urdu:


Php SuperGlobal Arrays Tutorial In Urdu
Php SuperGlobal Arrays Tutorial In Urdu

SHARE THIS POST   

  • Facebook
  • Twitter
  • Myspace
  • Google Buzz
  • Reddit
  • Stumnleupon
  • Delicious
  • Digg
  • Technorati
Author: Mohammad
Mohammad is the founder of STC Network which offers Web Services and Online Business Solutions to clients around the globe. Read More →

1 comment: