Senin, 23 Mei 2011

Counter pengunjung menjadi penting bagi pemilik website untuk mengukur jumlah pengujung yang mampir diwebsitenya, sehingga perlu di sisipkan program counter untuk menghitung jumlah pengunjung. Disamping menghitung jumlah bisa juga untuk mengetahui berbagai informasi tentang pengunjung misal, sistem operasi yang digunakan, browser, ip pengunjung, tanggal, jam, dan referensinya dari mana. Banyak penyedia jasa counter website (akan kita bahas di tulisan lanjutan) yang melayani secara gratis, tetapi tidak ada salahnya kalau kita bahas disini sebagai bahan dasar memahami cara kerja counter. Dalam tulisan ini saya sampaikan tentang pembuatan counter tanpa menggunakan database apapun. Jumlah pengunjung disimpan dalam sebuah file. Sehingga yang diperlukan sebuah file yang dapat dibaca dan ditulisi, kita sebut counter.txt, dan sebuah program PHP untuk membaca dan menulisi file teks tersebt kita beri nama counter.php. Kita mulai saja ya… Langkah pertama buat sebuah file, kita beri nama counter.txt, kosongkan file tersebut dan disimpan dalam folder yang sama dengan file program counter.php. Langkah kedua membuat file PHP dengan nama file counter.php Isi file counter.php sbb: Langkah ketiga, simpan file tsb ke dalam folder utama dimana ada file Index.php berada. Langkah keempat sisipkan file counter.php dalam file index.php sbb: include (“counter.php”); Langkah kelima, ubah file permision dari file counter.txt menjadi 777. Langkah keenam ujicoba, menggunakan browser pilihan Anda akses file index.php. JRENGGG…. counter akan tampil di website… Jika sudah berhasil Anda dapat memodifikasi isi file counter.txt dengan informasi ip pengunjung, jam dan tanggal. Kita bahas diposting selanjutnya… Incoming search terms for the article: • counter php • php counter • counter pengunjung • counter dengan php • menghitung jumlah pengunjung php • jumlah pengunjung php • counter with php • counter pengunjung php • php jumlah pengunjung • counter pengunjung dengan php

6 komentar:

  1. Would you be all in favour of exchanging hyperlinks?

    BalasHapus
  2. Would you be focused on exchanging links?

    BalasHapus
  3. It's vital, accordingly, to make certain that virtually any untrusted subject material that will varieties component to a site come to be taught using a varied origins in comparison with whatever hypersensitive information on which will websites. Untrusted articles can simply spoof some other website page for a passing fancy origins, examine info by which origin, reason scripts in that , beginnings to be able to perform, submit methods towards and additionally via which will origin even when they're protected out of cross-site get forgery episodes as a result of distinctive tokens, not to mention make full use of any sort of third-party methods come across or legal rights naturally to that origins

    BalasHapus
  4. It is vital, accordingly, to make certain that any sort of untrusted subject material which will styles section of an affiliate site turn out to be put with a completely different foundation as compared with virtually any private content and articles concerning which will online site. Untrusted content can possibly spoof some other web site on a single foundation, understand facts by in which source, bring about scripts because decent to be able to execute, upload documents to and also by who origin even when they may be guarded through cross-site require forgery violence just by different bridal party, as well as make full use of almost any third-party assets already familiar with or possibly the law given to this beginning

    BalasHapus
  5. Oh my goodness! a tremendous article dude. Thank you Nevertheless I am experiencing challenge with ur rss . Don know why Unable to subscribe to it. Is there anyone getting identical rss drawback? Anyone who is aware of kindly respond. Thnkx

    BalasHapus
  6. It's vital, for this reason, to make certain that any specific untrusted subject matter the fact that styles area of a site end up taught even on a diverse origins as opposed to any vulnerable subject material concerning that internet site. Untrusted articles can readily spoof every other document about the same basis, look at info from this decent, bring about scripts in this particular origin to make sure you accomplish, present versions in order to not to mention out of the fact that origins although they're just shielded from cross-site request forgery attacks from distinct tokens, and even make full use of every third-party means exposed to or maybe proper rights issued to that origins

    BalasHapus