<?php
echo $_SERVER ['SERVER_NAME'].'<br>';
echo $_SERVER ['SERVER_PROTOCOL'].'<br>';
echo $_SERVER ['REQUEST_METHOD'].'<br>';
echo $_SERVER ['HTTP_HOST'];
?>
output :
localhost
HTTP/1.1
GET
localhost
note :
1)some are listed above
echo $_SERVER ['SERVER_NAME'].'<br>';
echo $_SERVER ['SERVER_PROTOCOL'].'<br>';
echo $_SERVER ['REQUEST_METHOD'].'<br>';
echo $_SERVER ['HTTP_HOST'];
?>
output :
localhost
HTTP/1.1
GET
localhost
note :
1)some are listed above