Haha, this is an extremely simple script.
The PHP command $REMOTE_ADDR represents the user's IP address.
However, you coded the script wrong; this shouldn't work. You have a string within a string.
This will work:
PHP Code:
<?php
echo "Your IP: ".$REMOTE_ADDR;
?>