http functions

Posted By: DLively

http functions - 02/24/15 21:27

In the manual HTTP Functions has:

Code:
ip.php:
<?
$ip ="$REMOTE_ADDR";
echo "Your IP: $ip";
?>



That is incorrect. It should be:

Code:
<?php $ipaddress = $_SERVER['REMOTE_ADDR'];
echo "Your IP: $ipaddress";?>



Regards.
Posted By: jcl

Re: http functions - 02/25/15 12:29

Thanks! Our testscript was:

<?php
echo "Your IP address: " . $_SERVER['REMOTE_ADDR'];
?>
© 2024 lite-C Forums