Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunitySetup and InstallationInstallation and Setup (Moderators: scott, DanO, Marty)Call Calendar with SSI inside of a CGI-Script
Pages: [1]   Go Down
Print
Author Topic: Call Calendar with SSI inside of a CGI-Script  (Read 286 times)
0 Members and 1 Guest are viewing this topic.
flughund
New Member
*

Karma: 0
Offline Offline

Posts: 0

Graphic Designer


WWW
« on: December 22, 2004, 11:14:00 AM »

Hy! A SSI-Question:

I have a CGI-Script for my Portal-Site (http://www.wazomba.ch). No I need to integrate the SSI-Call into that script to show the next events (by the way: is there an othe possibility to show only THE NEXT EVENT than the NEXT DAYS?).

So, what should I change in my SSI-Call in the CGI-Script?:

<!--#include virtual="/cgi-bin/calendar/calendar.pl?template=ssi.html&duration=2d"-->

Because that didn't work! Any idea?

Logged

Greez, Dave
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: December 22, 2004, 01:13:00 PM »

** what should I change in my SSI-Call in the CGI-Script? **

It depends on the language the CGI script is written in. You'll have to use whatever method(s) are available in that language for loading other files.

SSI tags will not usually be parsed inside CGI scripts but depends on the way the server is set up.

Dan O.

------------------

Logged
flughund
New Member
*

Karma: 0
Offline Offline

Posts: 0

Graphic Designer


WWW
« Reply #2 on: December 23, 2004, 04:22:00 AM »

Allright, thanks for your quick answer!

The CGI-Script is written in Perl. So maybe I have to call it in the Perl language. But isn't the SSI-Command a Perl-based thing too?

So I think I'll have to do a workaround. Perl is not my lanuage... ;-)

------------------
Greez, Dave

Logged

Greez, Dave
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: December 23, 2004, 01:42:00 PM »

** But isn't the SSI-Command a Perl-based thing too? **

While SSI is usually part of Perl's installation, Perl scripts are not usually parsed for SSI tags which is the responsibility of the server set up.

Your server's set up may be able to be changed to parse Perl/CGI script output for SSI tags but you'll have to check with your host's support to see if it is possible on your server. Otherwise, you'll have to use a Perl function in the other script to capture CalendarScript's output and include it.

JMO

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: