Search This Blog

$_server() in php

<?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

Share Links

Related Posts Plugin for WordPress, Blogger...