Zihin Geliştirme Merkezi

KOOLPA

Zihin Geliştirme Merkezi

 

ziyaretçi sayısını öğrenmek için..(kod)

 Programlama Katagorisinde ve  Asp,Perl,Php,Html Forumunda Bulunan  ziyaretçi sayısını öğrenmek için..(kod) Konusunu Görüntülemektesiniz.=>ziyaretçi sayısını öğrenmek PHP Kodu: Alıntı: <html> <head> <title>Daily Counter</title> <script ************************ <!-- function closeWin() { self.close(); } function openWindow() ...


Geri git   Zihin Geliştirme Merkezi > KooLpa Webmaster / Grafik / Programlama > Programlama > Asp,Perl,Php,Html

Üye ol Bloglar Yardım Üye Listesi Ajanda Forumları Okundu Kabul Et

Cevapla

 

LinkBack Seçenekler Stil
Alt 31-05-2007, 20:38   #1 (permalink)
KooooLpa
 
pReNsEs - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Dec 2006
Mesajlar: 2,639
Tecrübe Puanı: 8 pReNsEs is on a distinguished road
Arrow ziyaretçi sayısını öğrenmek için..(kod)


ziyaretçi sayısını öğrenmek

PHP Kodu:



Alıntı:
<html>
<head>
<title>Daily Counter</title>
<script ************************
<!--
function closeWin() {
self.close();
}
function openWindow() {
window.open('visitors.php','Visitors','scrollbars= yes,width=420,height=210');
}
//-->
</script>
<style type="text/css">
<!--
.links { color: #000000}
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<center>
<br>
<br>

<table border="0" cellspacing="1" cellpadding="2" align="center">
<tr>
<td>
<font face="Verdana, Arial, Helvetica, sans-serif" size="1">

<!--Cut here -->

<?php
// Daily Counter 1.1
// Copyright (c)2000 Chi Kien Uong
// URL: http://www.proxy2.de

// - chmod this document to 755! -

$fpt = "daily.txt"; // path to counter log file - chmod it to 666

// optional configuration settings

$lock_ip =0; // IP locking and logging 1=yes 0=no
$ip_lock_timeout =30; // in minutes
$fpt_ip = "ip.txt"; // IP log file - chmod it to 666

// end configuration

function checkIP($rem_addr) {
global $fpt_ip,$ip_lock_timeout;
$ip_array = @file($fpt_ip);
$reload_dat = fopen($fpt_ip,"w");
$this_time = time();
for ($i=0; $i<sizeof($ip_array); $i++) {
list($time_stamp,$ip_addr,$hostname) = split("\|",$ip_array[$i]);
if ($this_time < ($time_stamp+60*$ip_lock_timeout)) {
if ($ip_addr == $rem_addr) {
$found=1;
}
else {
fwrite($reload_dat,"$time_stamp|$ip_addr|$hostname ");
}
}
}
$host = gethostbyaddr($rem_addr);
if (!$host) { $host = $rem_addr; }
fwrite($reload_dat,"$this_time|$rem_addr|$host\n") ;
fclose($reload_dat);
return ($found==1) ? 1 : 0;
}

$this_day=(date("D, j F Y"));
if (!file_exists($fpt)) {
$count_dat = fopen($fpt,"w+");
$count = 1;
fwrite($count_dat,$count);
fclose($count_dat);
}
else {
$row = file($fpt);
$test = chop($row[0]);
$count = $row[1];
if ($this_day == $test) {
if ($lock_ip==0 || ($lock_ip==1 && checkIP($REMOTE_ADDR)==0)) {
$count++;
}
}
else {
$count = 1;
}
$count_dat = fopen($fpt,"w+");
fwrite($count_dat,"$this_day\n");
fwrite($count_dat,$count);
fclose($count_dat);
}
echo "$this_day<br><b><a href=\"javascriptpenWindow()\" class=\"links\">Bugün</a> <font color=#CC0066>$count</font> ziyaretçi</b>";

?>

<!--Cut here -->
</font>
</td>
</tr>
</table>
</center>
</body>
</html>
__________________
pReNsEs isimli üyemiz çevrimdışıdır. (Offline)  
Digg this Post!Add Post to del.icio.usStumble this Post!Reddit!Google Bookmark this Post!Live Bookmark this Post!Propeller this post!
Alıntı ile Cevapla

Sponsor Linkler
Cevapla


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)

 
Seçenekler
Stil

Yetkileriniz
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık


Benzer Konular

Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Online Ziyaretçi Saysı efe Asp,Perl,Php,Html 0 20-01-2008 04:56
ziyaretçi defteri kodları pReNsEs Asp,Perl,Php,Html 0 31-05-2007 20:06
Ziyaretçi uğurlama mesajı pReNsEs Asp,Perl,Php,Html 0 31-05-2007 19:32
Güzelliğinizin Sayısını Mı Merak Ediyorsunuz... Crystal Heart Güzellik / Diyet 0 30-05-2007 17:33
Yabanci Dİl ÖĞrenmek İsteyenler Buraya waRdeR Site Adresleri 1 24-03-2007 01:04


Bütün Zaman Ayarları WEZ +3 olarak düzenlenmiştir. Şu Anki Saat: 05:08 .


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

Gizlilik Politikası | KooLpa üyeleri onay gerektirmeksizin mesaj yazabilmektedir. KooLpa' da yasalara aykırı unsurlar bulursanız buraya yazınız. En kısa zamanda gereği yapılacaktır.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208