PHP/Design Patterns/Request Info — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (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>