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 9 of 9
  1. #1
    New Coder
    Join Date
    Feb 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text web counter

    Hey guys, im looking for a text webcounter. Do they make any in java or dhtml? And I want it to be text, not a picture or a link. Thanks!

    Pleast Imstant message me on aim at : imverystupid

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You will need a Server Side language such as Perl or PHP to perform that function.

  • #3
    New Coder
    Join Date
    Feb 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have ssi on my site, isnt that what I need?

  • #4
    New Coder
    Join Date
    Dec 2002
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Make sure your host supports php

    this is the php code you can change the count.dat to whatever you want also this script will creat teh count.dat if it don't exsit
    to iclude it use
    <?php include ("whatever u namethefile.php"); ?>

    code:
    <?php
    if(file_exists("count.dat")) {

    // open for reading
    $fp = fopen("count.dat", "r");
    $count = fgets($fp, 1024);
    $count++;
    fclose($fp);
    echo "$count people have visited this page.";
    // open for writing
    $fp = fopen("count.dat", "w");
    fwrite($fp, $count);
    fclose($fp);

    } else {

    // create a new file
    $fp = fopen("count.dat", "w"); // open for writing
    fwrite($fp, "1");
    echo "one person has visited this page.";
    fclose($fp);

    }
    ?>
    print="TO Ask Will Unmask The Obvious-Jose 2002";

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you can get free ones already hosted for you, useful if your on a host that doesnt support server side coding.

    try googleing it...
    redhead

  • #6
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    If you have no luck finding one and can wait a few days my remote hosting service will be up.
    Omnis mico antequam dominus Spookster!

  • #7
    New Coder
    Join Date
    Feb 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, how much space would I get? Right now I get 20 and that isnt enough.

  • #8
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Lol.

    I meant remotely hosted applications.
    Omnis mico antequam dominus Spookster!

  • #9
    New Coder
    Join Date
    Jan 2003
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This thread might help...


  •  

    Posting Permissions

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