note 45319 deleted from reserved.variables by nlopess
| From: | nlopess@php.net | Date: | Thu, 02 Sep 2004 09:09:22 +0000 |
| Subject: | note 45319 deleted from reserved.variables by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75930@lists.php.net to get a copy of this message | ||
Note Submitter: marcelo at orionlab dot net
----
$_SERVER demonstration:
according to HTTP protocol
<?php
// author - marcelo at orionlab dot net
// simple demonstration with $_SERVER
$ip = $_SERVER['REMOTE_ADDR'];
$browser = $_SERVER['HTTP_USER_AGENT'];
$server_name = $_SERVER['SERVER_NAME'];
printf(" Your ip: %s , Your browser: %s, Your server: %s",$ip,$browser,$server_name);
?>