RE: [PHP]IP Catcher 06-21-2011, 06:07 AM
#3
(06-21-2011, 12:39 AM)tijs14tijs Wrote:(05-14-2011, 03:02 PM)1234hotmaster Wrote: made by me XD
PHP Code:<?php
$of = fopen("IP.html", 'a');
fwrite($of, $_SERVER['REMOTE_ADDR']."\n");
fclose($of);
?>
Nice script, but finding an ip requires sometimes more. This is the script that I use for determining the IP:
This is more reliable than yours :epic:PHP Code:$ip = $_SERVER['REMOTE_ADDR'];
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
But yours doesnet log like his does :epic: ... just trolling :p I know it's an easy add