I would like to know how you can echo
the ip-address of the user such that you can use it in your login cookie.
My code
<?php
echo "$_SERVER['REMOTE_ADDR']";
?>
I run it and I get in Firefox
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/file7.php on line 2
How can you get the IP-address by PHP?