Page 1 of 1

PHP unfamiliar tags but commonly used

Posted: Thu Sep 11, 2008 1:12 am
by klevz
what are these PHP tags for?

Code: Select all

$_COOKIE[]
$_ENV[]
$_FILES[]
$_REQUEST[]
$_SESSION[]
$_SERVER[]
can anyone give me some discussions about the purpose of these tags and examples.. :o

thanks,, best regards,,

Re: PHP unfamiliar tags but commonly used

Posted: Thu Sep 11, 2008 3:20 am
by Ziq
It's a superglobal predefined variables. Read manual.

Re: PHP unfamiliar tags but commonly used

Posted: Thu Sep 11, 2008 4:17 am
by pcoder
Try this:
May be you will get more idea.
It is just for an example.

Code: Select all

 
print '<pre>';
print_r($_SERVER);
print '</pre>';