|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
>>Is anything wrong in the previous code?
Yes. It should be: <!--#include virtual="/cgi-bin/imgs.pl?code=id1"--> |
|
#3
|
|||
|
|||
|
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? |
|
#4
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Perl, SSI and problems! (newbie to ssi) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|