Obtain ‘Client’ and ‘Server’ details using PHP

Posted: March 29, 2012 in Web-Tech

 

<?php
echo ‘<b>SERVER DOMAIN-NAME:</b>’;
echo $_SERVER[‘SERVER_NAME’];
echo ‘<br><br><b>YOUR IP-ADDRESS IS:</b>’;
echo $_SERVER[‘REMOTE_ADDR’];
echo ‘<br><br><b>SERVER-PORT USED:</b>’;
echo $_SERVER[‘SERVER_PORT’];
echo ‘<br><br><b>SERVER SOFTWARE:</b>’;
echo $_SERVER[‘SERVER_SOFTWARE’];
echo ‘<br><br><b>CLIENT BROWSER DETAILS:</b>’;
echo $_SERVER[‘HTTP_USER_AGENT’];
echo ‘<br><br><b>REQUEST METHOD:</b>’;
echo $_SERVER[‘REQUEST_METHOD’];
echo ‘<br><br><b>SERVER-PROTOCOL USED:</b>’;
echo $_SERVER[‘SERVER_PROTOCOL’];
?>

Advertisements
Comments
  1. Sukhpreet says:

    Thanks A lot !!

  2. xtross says:

    Your welcome ! šŸ™‚

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s