Slide 47
Slide 47 text
Output: /index.php
array (size=21)
'DOCUMENT_ROOT' => string '/Users/davey' (length=12)
'REMOTE_ADDR' => string '127.0.0.1' (length=9)
'REMOTE_PORT' => string '49956' (length=5)
'SERVER_SOFTWARE' => string 'PHP 5.4.0RC6 Development Server' (length=31)
'SERVER_PROTOCOL' => string 'HTTP/1.1' (length=8)
'SERVER_NAME' => string 'localhost' (length=9)
'SERVER_PORT' => string '8080' (length=4)
'REQUEST_URI' => string '/' (length=1)
'REQUEST_METHOD' => string 'GET' (length=3)
'SCRIPT_NAME' => string '/index.php' (length=10)
'SCRIPT_FILENAME' => string '/Users/davey/index.php' (length=22)
'PHP_SELF' => string '/index.php' (length=10)
'HTTP_HOST' => string 'localhost:8080' (length=14)
'HTTP_CONNECTION' => string 'keep-alive' (length=10)
'HTTP_USER_AGENT' => string 'Mozilla/5.0 (Macintosh; Intel Mac OS X
10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/
535.7' (length=116)
'HTTP_ACCEPT' => string 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8' (length=63)
'HTTP_ACCEPT_ENCODING' => string 'gzip,deflate,sdch' (length=17)
'HTTP_ACCEPT_LANGUAGE' => string 'en-US,en;q=0.8' (length=14)
'HTTP_ACCEPT_CHARSET' => string
'ISO-8859-1,utf-8;q=0.7,*;q=0.3' (length=30)
'REQUEST_TIME_FLOAT' => float 1327893336.7823
'REQUEST_TIME' => int 1327893336
Friday, June 8, 12