Friday, April 27, 2012

What does PHP's print_r($_SERVER) output?

    [HTTP_HOST] => localhost:8888
    [HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;
    [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_CONNECTION] => keep-alive
    [HTTP_REFERER] => http://localhost:8888/?m=settings!subscription!upgrade
    [HTTP_COOKIE] => __utma=111872281.1314222649.1332850396.1335657071.1335660029.147
    [PATH] => /Users/johnerck/svn/rocphp/path:/usr/bin:/bin:/usr/sbin:/sbin
    [SERVER_SOFTWARE] => Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.6
    [SERVER_NAME] => localhost
    [SERVER_ADDR] => ::1
    [SERVER_PORT] => 8888
    [REMOTE_ADDR] => ::1
    [DOCUMENT_ROOT] => /Users/johnerck/git/
    [SCRIPT_FILENAME] => /Users/johnerck/git/
    [REMOTE_PORT] => 53964
    [QUERY_STRING] => m=dashboard
    [REQUEST_URI] => /?m=dashboard
    [SCRIPT_NAME] => /index.php
    [PHP_SELF] => /index.php
    [REQUEST_TIME] => 1335661670
    [argv] => Array
            [0] => m=dashboard

    [argc] => 1
Looking for a cloud-based catalog and CRM platform? Checkout


  1. It seems you are so busy in last month. The detail you shared about your work and it is really impressive that's why i am waiting for your post because i get the new ideas over here and you really write so well.
    python Training institute in Pune
    python Training institute in Chennai
    python Training institute in Bangalore

  2. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
    Best Devops online Training
    Online DevOps Certification Course - Gangboard

  3. Woah this blog is wonderful i like studying your posts. Keep up the great work! You understand, lots of persons are hunting around for this info, you could help them greatly.

    Data Science Training in Chennai
    Data Science course in anna nagar
    Data Science course in chennai
    Data science course in Bangalore
    Data Science course in marathahalli
    Data science course in bangalore


About Me

My photo
I code. I figured I should start a blog that keeps track of the many questions and answers that are asked and answered along the way. The name of my blog is "One Q, One A". The name describes the format. When searching for an answer to a problem, I typically have to visit more than one site to get enough information to solve the issue at hand. I always end up on,, random blogs, etc before the answer is obtained. In my blog, each post will consist of one question and one answer. All the noise encountered along the way will be omitted.