Request Information:
- $_SERVER['REQUEST_METHOD'] - switch the Request method to (e.g. GET, POST, PUT, DELETE, etc.)
- $_SERVER['REQUEST_URI'] - The URI used to access the page
- $_SERVER['QUERY_STRING'] - Query string if accessed via URL
Server Information:
- $_SERVER['SERVER_NAME'] - Server hostname
- $_SERVER['SERVER_ADDR'] - Server IP address
- $_SERVER['SERVER_PORT'] - Port being used (usually 80 or 443)
- $_SERVER['SERVER_SOFTWARE'] - Server identification string
Script Information:
- $_SERVER['PHP_SELF'] - Filename of currently executing script
- $_SERVER['SCRIPT_NAME'] - Path of current script
- $_SERVER['SCRIPT_FILENAME'] - Absolute path of current script
- $_SERVER['DOCUMENT_ROOT'] - Root directory of the server
Client Information:
- $_SERVER['REMOTE_ADDR'] - IP address of the client
- $_SERVER['REMOTE_PORT'] - Port being used by client
- $_SERVER['HTTP_USER_AGENT'] - User agent string of the client
- $_SERVER['HTTP_REFERER'] - Referring page URL (if available)
Protocol Information:
- $_SERVER['HTTPS'] - Set to non-empty value if using HTTPS
- $_SERVER['REQUEST_SCHEME'] - http or https
You can view all available server variables with print_r($_SERVER); or var_dump($_SERVER);
<< back to Study About PHPBibliography
- https://www.coursera.org/
- https://www.engadget.com/
- https://www.freecodecamp.org
- https://www.geeksforgeeks.org/
- https://www.php.net/ ( manual ebook )
- https://techcrunch.com/
- https://www.techradar.com/
- https://teamtreehouse.com/
- https://www.tutorialspoint.com/
- https://www.udemy.com/
- https://www.w3schools.com/
- Apache HTTP Server ebook;McGraw Hill
- Apache HTTP Server ebook;In Easy Steps
- Apache HTTP Server ebook;Packt
- PHP ebook;Apress
- PHP ebook;Sitepoint
- SQL ebook;O'Reilly
- SQL ebook;Manning
- SQL ebook;For Dummies
Tidak ada komentar:
Posting Komentar