I am trying to get the IP address of users who access a certain page, but the script is returning errors. My script is something like this…
$logfile = fopen("log.txt", "a");
I was browsing the Dream Host wiki and looking into the php.ini settings and found this page: http://wiki.dreamhost.com/index.php/Register_globals
According to that we should be able to use $_SERVER, right? So what have I done wrong? Or, if anybody has an alternate script to try, that would be just as good as fixing mine.