Closed nperez0111 closed 8 years ago
Need another way of accessing url parameters and json data.... Print out of Server variable:
Array ( [PATH] => /usr/local/bin:/usr/bin:/bin [REDIRECT_STATUS] => 200 [UNIQUE_ID] => Vmz8138AAAEAABunkY8AAAAJ [SCRIPT_URL] => /pizza/api/v1/users/ni k [SCRIPT_URI] => http://nickthesick.com/pizza/api/v1/users/ni k [HTTP_HOST] => nickthesick.com [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp, [HTTP_UPGRADE_INSECURE_REQUESTS] => 1 [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36 [HTTP_ACCEPT_ENCODING] => gzip, deflate, sdch [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.8 [HTTP_COOKIE] => PHPSESSID=9dgd1fim5snmqrubn8te33krn4; _ga=GA1.2.687049741.1449975486; _gat=1 [HTTP_CONNECTION] => close [SERVER_SIGNATURE] => <address>Apache/2.4.16 (Unix) Server at nickthesick.com Port 80</address> [SERVER_SOFTWARE] => Apache/2.4.16 (Unix) [SERVER_NAME] => nickthesick.com [SERVER_ADDR] => 10.0.187.200 [SERVER_PORT] => 80 [REMOTE_ADDR] => 73.179.168.70 [DOCUMENT_ROOT] => /home/sites/nickthesick.com/public_html/ [REQUEST_SCHEME] => http [CONTEXT_PREFIX] => [CONTEXT_DOCUMENT_ROOT] => /home/sites/nickthesick.com/public_html/ [SERVER_ADMIN] => webmaster@nickthesick.com [SCRIPT_FILENAME] => /home/sites/nickthesick.com/public_html/api/v1/api.php [REMOTE_PORT] => 45554 [REDIRECT_QUERY_STRING] => /pizza/api/v1/users/ni k [REDIRECT_URL] => /pizza/api/v1/users/ni k [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => /pizza/api/v1/users/ni k [REQUEST_URI] => /pizza/api/v1/users/ni%20k [SCRIPT_NAME] => /api/v1/api.php [PHP_SELF] => /api/v1/api.php [REQUEST_TIME_FLOAT] => 1449983191.1352 [REQUEST_TIME] => 1449983191 )
Need another way of accessing url parameters and json data.... Print out of Server variable: