Results 1 to 10 of 10
  1. #1

    Parse CGI for SSI !?

    Hello,

    How can i get SSI on my server to look through all the coding of my cgi files for SSI tags !

    Is that done on my hosting account or does it depend on the way it is coded ??

    Someone help me with this !

    Cheers
    http://www.scripttalk.com : Script Related Discussion Forum.
    Register yourself today & be a part of the exclusive community !

  2. #2
    I'm confused -- are you just trying to get SSI to work or?

    SSI generally needs an .shtml extension (unless you add a MIME type telling the server otherwise) and is called as follow:

    <!--#include file="inc/header.html" -->

  3. #3
    hello,

    Thanks for your reply.

    I am using this to call the file in a cgi page:

    <!--#exec cgi="/ads/la_ad.cgi" -->

    When i add this code, I get an error !

    Do i need to add a MIME type or somethign else ??

    Thanks
    http://www.scripttalk.com : Script Related Discussion Forum.
    Register yourself today & be a part of the exclusive community !

  4. #4
    Join Date
    Aug 2002
    Posts
    190
    Your server have to support exec cgi

  5. #5
    Join Date
    Oct 2002
    Location
    North America
    Posts
    1,229
    Go through this checklist:

    * does your server support SSI?

    if YES, then also check:
    * does your server support exec CGI?

    if YES, then also check:
    * is your page extension *.shtml?

    if YES, then try:
    * use the include virtual command
    <!-- include virtual="/ads/la_ad.cgi" -->
    (does not work with all scripts / all server configurations - but it's something else to try)

  6. #6
    Join Date
    Aug 2002
    Posts
    190
    You could use .htaccess to tell apache to parse every file that has execute permissions turned on regardless of the file extension. You don't have to rename your pages to .shtml to make them work. You can add the following to your .htaccess file and the SSI tags will work fine:

    AddHandler server-parsed .htm
    Options +Includes

  7. #7
    Join Date
    Oct 2002
    Location
    North America
    Posts
    1,229
    debug's solution would work...however, it would also make the server work much harder. It would check every single file for includes to be parsed, irregardless of whether the file contained includes. Be cautious implementing that fix. It may not be the most effective.

  8. #8
    Join Date
    Aug 2002
    Posts
    190
    Originally posted by living_media
    it would also make the server work much harder. It would check every single file for includes to be parsed, irregardless of whether the file contained includes. Be cautious implementing that fix. It may not be the most effective.
    I agree

  9. #9
    Hii,

    Thanks for your valuable inputs, I checking through them.

    If i still can't get it work, I'll settle for using iFrames !

    Thanks
    Cheers
    http://www.scripttalk.com : Script Related Discussion Forum.
    Register yourself today & be a part of the exclusive community !

  10. #10
    Join Date
    Aug 2002
    Posts
    190
    Originally posted by brands
    Hii,

    Thanks for your valuable inputs, I checking through them.

    If i still can't get it work, I'll settle for using iFrames !

    Thanks
    Cheers
    iframe is another solution. Good idea.

Posting Permissions

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