#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Greece
    Posts
    10
    Rep Power
    0
    Hallo,
    I want to create a mechanism in order to create something like an image rotator. So, devided to create a perl script that will return the link to an image. The code is simple, eg:
    if ($code eq "id1")
    {
    print "<img src=...
    }

    I call the cgi script in the HTML files (with .html extension) via an SSI call:
    <!--include virtual="/cgi-bin/imgs.pl?code=id1"-->

    The problem is that i cannot see the images. Hints:
    I do not make anything with the QUERY_STRING and when I look the html file source code i see the SSI code.

    Is anything wrong in the previous code?

    Thanks
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>Is anything wrong in the previous code?

    Yes.

    It should be:

    <!--#include virtual="/cgi-bin/imgs.pl?code=id1"-->
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Greece
    Posts
    10
    Rep Power
    0
    No, actually it was just a typo mistake!
    The real code has the # sign!

    Is it normal to see the SSI code in the html page?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    71
    Rep Power
    15
    You should not see SSI code in html. That means that SSI has not been processed.
    You might need to put *.shtml extensions to html document.

IMN logo majestic logo threadwatch logo seochat tools logo