Re: Show the entire browser request
| From: | Andrew Ballard | Date: | Mon, 08 Jun 2009 19:22:41 +0000 |
| Subject: | Re: Show the entire browser request | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293763@lists.php.net to get a copy of this message | ||
On Mon, Jun 8, 2009 at 2:40 PM, Dotan Cohen<dotancohen@gmail.com> wrote:
>> Roger that. Check out getallheaders() then:
>>
>> http://php.net/getallheaders
>>
>
> Well, that seems to be partway there, but it doesn't include the GET request.
>
> --
> Dotan Cohen
>
> http://what-is-what.com
> http://gibberish.co.il
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
This should do it, I believe:
<?php
echo $_SERVER['REQUEST_METHOD'], ' ', $_SERVER['REQUEST_URI'], '
',
$_SERVER['SERVER_PROTOCOL'];
?>