[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] SSI



How exactly do you get a SSI to work? Below is the program I wish to run (ie, program that prints out the stuff I want to include) whenever the file is called via...
<!--#exec cgi="banner.pl"-->
...assuming the correct path. Since I have large indents and it will likely wrap I've included a short version. There are no variables etc in $banner, just html code for a menu bar

--Nick

#!perl -w
#### short version ####
$banner = <<BANNER ;
     ...stuff goes here...
BANNER
print "$banner";



#!perl -w
#### long version ####

$banner = <<BANNER ;
<!--########## begin menu bar ##########-->
     <TABLE align=left cellpadding=5 width=175>
          <TR>
               <TD bgcolor="#dddddd">
                    <FONT SIZE=-1>
                    <B><A HREF="../index.html">Welcome Page</A></B>
                    <BR><IMG src="../wren-resources/homepage.JPG" align=left>
                    Homepage of the Department<P>

                    <B><A HREF="../people/people.html">Faculty, Staff, and Students</A></B>
                    <BR><IMG src="../wren-resources/title-people.JPG" align=left>
                    Information about the people<P>

                    <B><A HREF="../news/news.html">Department Info</A></B>
                    <BR><IMG src="../wren-resources/title-news.JPG" align=left>
                    Facts about the department<P>

                    <B><A HREF="../resources/resources.html">Cultural and Educational Links</A></B>
                    <BR><IMG src="../wren-resources/title-resources.JPG" align=left>
                    Electronic French Resources<P>

                    <B><A HREF="../events/events.html">Current Events</A></B>
                    <BR><IMG src="../wren-resources/title-events.JPG" align=left>
                     Upcoming events in the department<P>

                    <B><A HREF="../courses/courses.html">Individual Courses</A></B>
                    <BR><IMG src="../wren-resources/title-courses.JPG" align=left>
                    Catalog Descriptions of French Courses <P>

                    <B><A HREF="../house/theme.html">Language House</A></B>
                    <BR><IMG src="../wren-resources/title-house.JPG" align=left>
                    The French House's webpage<P>
                    </FONT>
               </TD>
               <TD bgcolor="#ff0000">
                    &nbsp;
               </TD>
          </TR>
     </TABLE>
<!--########## end menu bar ##########-->
BANNER

print "$banner";

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org