Page is a not externally linkable
madcat - 5:13 pm on Oct 11, 2002 (gmt 0)
<?php >> Your IP address is . <?php Work correctly- so are they wrong to use? Is getenv() necessary? I'm using PHP 4.2.2- just a bit confusing when your trying to learn. Thanks-
I'll check it out really...but php.net has as example:
$address = getenv('REMOTE_ADDR');
echo "Your IP address is $address.";
?>
-------------------------------------------------
Using:
$address = $_SERVER['HTTP_USER_AGENT'];
echo "Your IP address is $address.";
?>
OR...
<?php
$address = $_SERVER['REMOTE_ADDR'];
echo "Your IP address is $address.";
?>