Home >> PHP >> $_SERVER super global variable in PHP

$_SERVER super global variable in PHP

$_SERVER is an array which used to information of headers, paths, script locations.

1)-$_SERVER['PHP_SELF']

2)-$_SERVER['argv']

3)-$_SERVER['GATEWAY_INTERFACE']

4)-$_SERVER['SERVER_ADDR']

5)-$_SERVER['SERVER_NAME']

6)-$_SERVER['SERVER_SOFTWARE']

7)-$_SERVER['SERVER_PROTOCOL']

8)-$_SERVER['REQUEST_METHOD']

9)-$_SERVER['REQUEST_TIME']

10)-$_SERVER['QUERY_STRING']

11)-$_SERVER['HTTP_ACCEPT']

12)-$_SERVER['HTTP_ACCEPT_CHARSET']

13)-$_SERVER['HTTP_HOST']

14)-$_SERVER['REMOTE_PORT']

15)-$_SERVER['SCRIPT_FILENAME']

16)-$_SERVER['SERVER_ADMIN']

17)-$_SERVER['SERVER_PORT']

18)-$_SERVER['SERVER_SIGNATURE']

19)-$_SERVER['PATH_TRANSLATED']

20)-$_SERVER['SCRIPT_NAME']

21)-$_SERVER['SCRIPT_URI']

Post Your Comment

Next Questions
$_REQUEST super global variable
$_POST super global variable
$_GET super global variable
$_FILES super global variable
$_ENV super global variable
$_COOKIE super global variable
$_SESSION super global variable
Ternary operator
Variable types
What is password encrypt and decrypt function
Difference between echo and print
How can destroy and unset the variable of a session
Function
isset() function
unset() function
empty() function
What are function for controlling script execution
exit() function
die() function
fun_num_args() function
ereg_replace() function
ereg_ireplace() function
preg_match() function
preg_replace() function
File handling

Copyright ©2022 coderraj.com. All Rights Reserved.