Results 1 to 7 of 7

Thread: HTML? : Creating a web counter

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    HTML? : Creating a web counter

    Does anyone know how I would go about making a webconter for my website??

    Thank you for any help.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131
    A counter can't be done just in HTML - you need to use a server-side language. However if you can't be bothered to do that there are loads of free counters on the web that you could use - just search on google.

  3. #3

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I'm willing to use another language but I know my server doesn't support PHP or mySQL and I'm not sure bout ASP, I'm hoping to find out today wether it supports ASP tho.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    if it supports ASP or Perl, you can just use a flat-file database to keep track of things.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    How would I use a flat file database with ASP and bare in mind my server doesn't support mySQL I found a way to do it using a application variable but it said for it to work the server needs to restart for it to start then if the server gets restarted the counter resets.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    A flat-file database would just be like a text file that you read and write to on the server.

    Each time the page is loaded, you could just load the file, get the number, increment it, and write the new number back to the file.

    Of course, that doesn't count daily unique users, but it's a start.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    #@£%$&! No ASP!!

    I just found out my server doesn't even support ASP so it looks like I might be looking for a new webhost first . It is a free host but I thort they'd have atleast supported something more than html, and its a £25 charge to change my domain away from them .

    Thanx for the help you two
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions

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



Click Here to Expand Forum to Full Width