Haifa linux club:PHP lecture
Prev Next


Predefined variables


(very partial list)
<?
$x 
$SERVER_NAME;
#The name of the server host 

$x $REQUEST_METHOD;
#'GET', 'HEAD', 'POST' or 'PUT'

$x $PHP_SELF;
#The filename of the currently executing script

$x $HTTP_COOKIE_VARS["Varname"];
$x $HTTP_GET_VARS["Varname"];
$x $HTTP_POST_VARS["Varname"];
# variables that were posted using post, get or cookie.

$x $REMOTE_ADDR
# The IP address from which the user is viewing the current page. 
?>





HOME