Myślę że musisz jeszcze zrobić \r
Ja mam prosty skrypt, który zapisuje mi IP, Host, date, godzine, minute i sekunde polaczenia ze strona... wyglada tak...
<?
$adres = strval($REMOTE_ADDR); $host = gethostbyaddr($adres);
$plik=fopen(\"dane.txt\",\"a\"); if(!$plik)
{
echo \"blad zapisu pliku\"; }
fputs($plik,\"IP: $adres HOST: $host DATA: $dzien.$miesiac.$rok GODZ. $godzina:$minuta
:$sekunda rn\"); ?>
U mnie jest wszystko w porządku... efekt jest następujący... w pliku dane.txt wyświetla mi IP (i inne) jedno pod drugim...
Kod
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 03.9.2004 GODZ. 21:03:40
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 03.9.2004 GODZ. 21:03:42
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 03.9.2004 GODZ. 21:03:50
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 03.9.2004 GODZ. 21:03:53
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 03.9.2004 GODZ. 21:03:57
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 03.9.2004 GODZ. 21:04:00
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 03.9.2004 GODZ. 21:04:57
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 03.9.2004 GODZ. 21:05:04
IP: 213.199.215.53 HOST: 53.pub2.ino.tvknet.pl DATA: 04.9.2004 GODZ. 9:24:26
IP: 213.199.215.53 HOST: 53.pub2.ino.tvknet.pl DATA: 04.9.2004 GODZ. 9:25:06
IP: 83.31.29.158 HOST: cif158.neoplus.adsl.tpnet.pl DATA: 04.9.2004 GODZ. 10:55:36
IP: 83.31.113.225 HOST: cll225.neoplus.adsl.tpnet.pl DATA: 04.9.2004 GODZ. 21:03:15
IP: 83.31.113.225 HOST: cll225.neoplus.adsl.tpnet.pl DATA: 04.9.2004 GODZ. 21:04:18
IP: 83.31.44.198 HOST: ciu198.neoplus.adsl.tpnet.pl DATA: 05.9.2004 GODZ. 7:56:43
IP: 83.31.41.194 HOST: cir194.neoplus.adsl.tpnet.pl DATA: 05.9.2004 GODZ. 20:44:44
IP: 64.71.144.17 HOST: 64.71.144.17 DATA: 05.9.2004 GODZ. 24:12:16
IP: 66.196.90.66 HOST: lj1050.inktomisearch.com DATA: 06.9.2004 GODZ. 10:09:31
IP: 83.25.3.225 HOST: aad225.neoplus.adsl.tpnet.pl DATA: 06.9.2004 GODZ. 22:52:53
IP: 62.29.129.9 HOST: CAG-EP-dbp-NC03-e0.energis.pl DATA: 07.9.2004 GODZ. 13:18:11
IP: 62.29.129.9 HOST: CAG-EP-dbp-NC03-e0.energis.pl DATA: 07.9.2004 GODZ. 13:18:20
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:25:53
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:28:08
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:28:10
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:33:15
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:41:49
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:43:53
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:45:15
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:49:39
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:49:55
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:50:07
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:50:43
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 21:52:36
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 22:07:40
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 22:08:36
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 22:08:38
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 22:08:41
IP: 62.179.63.69 HOST: chello062179063069.chello.pl DATA: 07.9.2004 GODZ. 22:12:14
IP: 83.17.16.58 HOST: akm58.internetdsl.tpnet.pl DATA: 07.9.2004 GODZ. 22:16:38
IP: 83.17.16.58 HOST: akm58.internetdsl.tpnet.pl DATA: 07.9.2004 GODZ. 22:17:03
IP: 83.29.76.96 HOST: bqi96.neoplus.adsl.tpnet.pl DATA: 07.9.2004 GODZ. 23:38:37
IP: 83.29.76.96 HOST: bqi96.neoplus.adsl.tpnet.pl DATA: 07.9.2004 GODZ. 23:39:06
IP: 83.29.76.96 HOST: bqi96.neoplus.adsl.tpnet.pl DATA: 07.9.2004 GODZ. 23:40:31
IP: 83.29.76.96 HOST: bqi96.neoplus.adsl.tpnet.pl DATA: 07.9.2004 GODZ. 23:40:58
IP: 83.29.76.96 HOST: bqi96.neoplus.adsl.tpnet.pl DATA: 07.9.2004 GODZ. 23:41:00
IP: 83.29.76.96 HOST: bqi96.neoplus.adsl.tpnet.pl DATA: 07.9.2004 GODZ. 23:41:01
IP: 83.29.76.96 HOST: bqi96.neoplus.adsl.tpnet.pl DATA: 07.9.2004 GODZ. 23:41:04
Spróbuj wpisać:
<?php
else {
fwrite($reload_dat,\"$time_stamp|$ip_addr|$hostname rn\"); }
?>