SunQuest
           Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old October 7th, 2000, 05:04 AM
tpe tpe is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Greece
Posts: 10 tpe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 38 sec
Reputation 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

Reply With Quote
  #2  
Old October 7th, 2000, 09:09 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>Is anything wrong in the previous code?

Yes.

It should be:

<!--#include virtual="/cgi-bin/imgs.pl?code=id1"-->

Reply With Quote
  #3  
Old October 8th, 2000, 01:09 PM
tpe tpe is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Greece
Posts: 10 tpe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 38 sec
Reputation 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?

Reply With Quote
  #4  
Old October 8th, 2000, 08:41 PM
Pepe Pepe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 71 Pepe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Perl, SSI and problems! (newbie to ssi)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway