JavaScript Editor Ajax software     Free javascripts 



Main Page

Figure 3-6
Table 3-1
Server Variable
Description
$_SERVER[‘REQUEST_URI’]
Returns the URI (Uniform Resource Identifier) of the original
request. In practice, this returns the path of the
original
request
excluding the domain name.
$_GET[‘parameter_name’]
Returns the value of the
parameter_name
query string parameter
from the rewritten URL.
$_POST[‘parameter_name’]
Returns the value of the
parameter_name
POST parameter of the
request.
$_COOKIES[‘cookie_name’]
Returns the value of the
cookie_name
cookie.
$_SESSION[‘variable_name’]
Returns the value of the
variable_name
session variable.
$_SERVER[‘QUERY_STRING’]
Returns the query string from the
rewritten
URL.
$_SERVER[‘PHP_SELF’]
Returns the file name of the running script.
Internet Visitor
User requests
http://www.example.com/my-super-product.html
mod_rewrite
product.php
script
mod_rewrite translates the request to
http://www.example.com/product.php?product_id=123
output from product.php
Apache Web Server
The Internet
$_SERVER[‘REQUEST_URI’]
$_SERVER[‘PHP_SELF’]
$_GET[‘product_id’]
$_SERVER[‘QUERY_STRING’]
/my-super-product.html
/product.php
123
product_id=123
53
Chapter 3: Provocative SE-Friendly URLs
c03.qxd:c03 10:39 53


JavaScript Editor Ajax software     Free javascripts 
Bitcoin Gambling - The Original Crypto Dice Game