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 5 of 5

Thread: ssi in pws

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

    ssi in pws

    I'm trying to generate a hit counter using Server Side Includes on MS Peer Web Services. I've tried several different commands, but the one that should work (and isn't), is:

    <!--#exec cgi="../scripts/check.cgi"-->

    The file containing this command is C:\inetpub\wwwroot\wonder.stm.

    The cgi file is C:\inetpub\scripts\check.cgi.

    C:\inetpub\scripts has also been labeled as the virtual directory "\Scripts".

    .stm files are currently mapped to C:\winnt\system32\inetsrv\ssinc.dll.

    Am I mapped to the wrong .dll? Is my include statement wrong?

    Any input would be appreciated. Thank you.

    Edit: It is my current understanding that the #exec command is only available for SSI on Windows 2000 or later (IIS and PWS). So as far as my using NT 4 SP 6, it looks like I'll have to find another solution.
    Last edited by EasilyBefuddled; 09-06-2002 at 02:46 AM.

  • #2
    New Coder
    Join Date
    Jan 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i have exactly the same problem

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not that I know anything of Win servers and this probably won't help, but there are servers on which SSI doesn't work when there's no space between the double quotes and the second comment tag.
    <!--#exec cgi="script.cgi"-->
    <!--#exec cgi="script.vgi" --> <<

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    By default IIS disables the use of the SSI EXEC command, you have to explicitly enable it. See this article in the MS Knowledgebase.

    Is it just me or did a rash of SSI questions just hit the board?

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's not you, Roy.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

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