Counters Code

  Home arrow Counters Code arrow Easy Counter
COUNTERS CODE

Easy Counter
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2002-11-05

    Table of Contents:

     
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement
    Simple and Easy counter. Text based with show image counter.

    By : hermawan

    <?php
    /***********************************************
    * Snippet Name : Easy Counter *
    * Scripted By : Hermawan Haryanto *
    * Website : http://hermawan.com *
    * Email : hermawan@codewalkers.com *
    * License : GPL (General Public License) *
    * Created Date : 10/08/2002 *
    * Instruction : 1. Upload all pack *
    * 2. CHMOD +777 to counter.dat *
    * 3. You're done *
    ***********************************************/
    $cf = "counter.dat";
    $fp = fopen($cf,"r");
    $ct = trim(fread($fp,filesize($cf)));
    if ($ct != "") $ct++;
    else $ct = 1;
    @fclose($fp);
    $fp = fopen($cf,"w");
    @fputs($fp,$ct);
    for($i=0;$i<strlen($ct);$i++) {
    $imgnum = substr($ct,$i,1);
    $counter .= "<img src='$imgnum.gif'>";
    }
    @fclose($fp);
    print $counter;
    ?>


    Click to Download File



    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More Counters Code Articles
    More By Codewalkers

    blog comments powered by Disqus

    COUNTERS CODE ARTICLES

    - TG Who's Online
    - Text Based Counter that formats output
    - Counter & visitor statistics
    - Server Uptime Statistics
    - Chris Dingman's Hit Tracker Script
    - Graph Maker Function
    - Simple userOnline class
    - Adv. Log file generator
    - Logwriter
    - time_left()
    - Basic Statistics
    - Easy Counter
    - countCodeLines
    - MySQL Counter
    - bandwidthmeter


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap