Results 1 to 6 of 6

Thread: Problems with a counter

Hybrid View

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772

    Problems with a counter

    Ok, this is stumping me. I have these files:

    (root folder)
    --index.asp, uses the counter code
    --(counter folder)

    (counter folder)
    --counter.asp, code for the counter
    --demo.asp, counter test page
    --counter.txt, number of people who have visited.

    This is what is happening: When I try to load the index.asp page, I get a HTTP 500 Internal Server Error (because of the counter). But, when I go to the demo.asp page, it works fine. So I go back to the nindex.asp page, and it is working fine! This is confusing me, can someone please tell me why? I can post the code for the files if you need to.
    Alcohol & calculus don't mix.
    Never drink & derive.

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    I can post the code for the files if you need to
    it would very help

  3. #3

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    K, here it is. One thing, I have it as include virtual, i tried include file but it gave the same results.
    Attached Files Attached Files
    Alcohol & calculus don't mix.
    Never drink & derive.

  4. #4
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    I used this in the index.asp file
    Code:
    <!--#include file="counter/counter.asp"-->
    and changed line 39 0r so in the counter.asp to this
    Code:
    fn = Server.MapPath("counter/counter.txt")
    and it worked fine from the index.asp file, but then of course it got the error from the demo.asp file, what i would do is put these to files in the same place and adjust the Server.MapPath accordingly
    VB6.0 SP4
    Windows 2000
    I'm thinking of a number between

  5. #5

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Well, that's ok, I don't really need the demo.asp file anyways, it was a test. Thanks alot!
    Alcohol & calculus don't mix.
    Never drink & derive.

  6. #6
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    your very welcome!
    VB6.0 SP4
    Windows 2000
    I'm thinking of a number between

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