darkmindz
01-26-2011, 04:18 PM
You want to get/grab an IP but you dont know how you should get it..
am got idea for it....Chk code below ;)
<?php
header('Content-type: image/jpeg');
readfile('image.jpg');
$log = "log.txt";
$grab = "Connection from:".$_SERVER['REMOTE_ADDR']." at ".date("r",time())."\n";
if ($handle = fopen($log, 'a')) {
fwrite($handle, $grab);
fclose($handle);
}
?>
save it an php file and upload its with whatever picture u want with name image.jpg
and dont forget to make txt file with name log.txt
and upload at ur hosting.if someone open dis page,its like just image page but it will create ip logger visitor and log will save at log.txt
;)
am got idea for it....Chk code below ;)
<?php
header('Content-type: image/jpeg');
readfile('image.jpg');
$log = "log.txt";
$grab = "Connection from:".$_SERVER['REMOTE_ADDR']." at ".date("r",time())."\n";
if ($handle = fopen($log, 'a')) {
fwrite($handle, $grab);
fclose($handle);
}
?>
save it an php file and upload its with whatever picture u want with name image.jpg
and dont forget to make txt file with name log.txt
and upload at ur hosting.if someone open dis page,its like just image page but it will create ip logger visitor and log will save at log.txt
;)