bueno, emmm vamos de 1 al code no tengo ganas de hablar xD
[index.php]
<title>Te vamos a leer la ip ^^</title>
<center><code><h1>You re Loged ^^</h1></code></center>
<br>
<?php
include("logs.php");
?>
[logs.php]
<?php
$fo=fopen("archivodelogs.txt","a") or die("no esta el archivo xD");
$ip=$_SERVER[REMOTE_ADDR];
$host=gethostbyaddr($ip);
$d=date("d-m-Y");
fputs($fo,"$d $ip $host");
fputs($fo,"\r\n");
fclose($fo);
?>
$host=gethostbyaddr($ip);
agregale esto asi agregue el host tmb es una forma ahy varias
Codigo Corregido, arreglados muchos fallos.
Se nota el copy and paste.