Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: site METER

  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    site METER

    Hi, Can someone help me with a personal site meter? I know i can get a free one offline but i dont want all the ad's. Can someone make me a file for it? Thank you for any help.

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    What do you mean by site meter?
    Omnis mico antequam dominus Spookster!

  • #3
    Regular Coder
    Join Date
    Mar 2004
    Posts
    232
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you mean a counter?

    if so:
    PHP Code:
    $file fopen("count.dat""a"); // you need to create this file...
    fputs($file"HIT \n");
    fclose($file);
    $hits count(file("count.dat")) // Find out how many hits
    echo ("You are visitor number $hits!"); 
    If by meter you mean counter than that is about the simplest counter you will ever find... I have one on my site that doesn't count my hits and it tells me how many hits since my last visit...But the one above should do just find it you like um simple


  •  

    Posting Permissions

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