PHP/Design Patterns/Request Info — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
м (1 версия)
 
м (1 версия)
 
(нет различий)

Текущая версия на 10:03, 26 мая 2010

For GET requests, the encoded data send appended to the URL

   <source lang="html4strict">

<? echo getenv("$QUERY_STRING"); ?>


      </source>
   
  


The address of the page from which the request was made

   <source lang="html4strict">

<? echo getenv("$HTTP_REFERER"); ?>


      </source>
   
  


The full address of the request including query string

   <source lang="html4strict">

<? echo getenv("$REQUEST_URI"); ?>


      </source>
   
  


Whether the request was GET or POST

   <source lang="html4strict">

<? echo getenv("$REQUEST_METHOD"); ?>


      </source>