Results 1 to 5 of 5

Thread: File save on server?

  1. #1

    Thread Starter
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    File save on server?

    I need to save a file - or something else on my server, to make a hitcounter. The problem is that this counter is to be made by client side only languages(preferably JavaScript), is this possible? Or should I direct it through an ASP page(The least favored option...)

    Cheers!
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    the only thing client side JS could do is to create a timer which counts how many times THAT user has visited your site. I think ASP (sorry) or PHP or cgi are needed otherwise. And unfortunately I can't use any of those languages.
    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Well

    I do know how to use ASP, and .Net to make a hit counter - but i'm trying to make it for a host that doesn't support SSL - which is my problem... But i'll try redirecting and counting that way - just have to host the counter myself then =/.

    Cheers!
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The SSL acronym for server-side languages is poorly chosen, it actually means secure socket layer.

    If you have a little space on a server that DOES support SSS (server-side scripting), you can place the counter there. Simply have a link to an image on the main page (or every page if you want to count every page). The source of this image is a script on your second server that increments the hit count for the referrer (so you can use it for various sites) and then generates an image with the current count on it and sends it back.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The inability of client-side scripts to persistently store information makes them unsuitable for the job.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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