$cc"); $cc = "http://kft.umcs.lublin.pl/wfj/count.txt"; $cc = "/var/www/html/wfj/count.txt"; $cc2 = "/var/www/html/wfj/kto.txt"; if (file_exists($cc )): echo "widze go"; endif; $fp = fopen($cc, "r+"); $ii = fgets($fp, 10); echo "------------ $ii ---------$fp------
"; $ii = $ii + 1; echo "------------ $ii ---------$fp------
"; fseek($fp ,0); fwrite($fp, $ii, 10); $fp2 = fopen($cc2, "a+"); $adr1 = $ii; $adr1 .= " "; $adr1 .= date("D d-m-y H:i"); $adr1 .= " "; $adr1 .= getenv("remote_addr"); $adr1 .= " "; $s1 = getenv("remote_addr"); $adr1 .=exec("host $s1 |awk '{print $5}'"); #$adr1 .= getenv("remote_host"); $adr1 .= " "; $adr1 .= $x; $adr1 .= "\n"; fwrite($fp2, $adr1, 100); fseek($fp ,30); fwrite($fp2, $adr2, 30); fclose($fp); echo "------------ $ii ----------$fp-----
"; ?>