I want to store ip2logn($_SERVER[\'REMOTE_ADDR\']) values in the db for some reason.
ip2logn($_SERVER[\'REMOTE_ADDR\'])
Practically, as I see, $_SERVER[\'REMOTE_ADDR\'] alwa
$_SERVER[\'REMOTE_ADDR\']
It will only be set if you're running the script through a webserver. If you're running PHP in CLI (command line) mode, REMOTE_ADDR will not be set, as there is no remote address for a command line script.