Solved

Using SSI and CGI for banners. Good?

Posted on 1998-05-13
1
256 Views
Last Modified: 2013-12-25
I was planning on creating an SSI webpage (SHTML) which will make a call to my BANNER.CGI to insert the appropriate banner image and hyperlink. It will do this with the SSI command:
<!--#exec CGI="/cgi-bin/banner.cgi -->
Result after the SHTML page has been parsed by server:(The above line will be replaced with the following)
<a href="www.microsoft.com"><img src="ads/microsoft.gif" width=486 height=60></a>

Since I'm using SSI and making a call to my CGI isn't this all "twice" as much an impact on the server than if I just called my CGI directly and have it open a template HTML page and manually insert the appropriate graphics + hyperlink via a marker in the HTML page?! Or is the impact of SSI very minimal that the SSI + CGI method is an acceptable solution?  

Thank you VERY much for your help!
0
Comment
Question by:mirror
1 Comment
 
LVL 2

Accepted Solution

by:
WileyKat earned 0 total points
ID: 1828438
It sort of depends on your server. However, it is generally accepted (by me at least :) that using the SSI to call the CGI is actually easier, because your CGI doesn't have to waste time parsing the template file and inserting the HTML in the correct place. You save an entire file buffer, plus all the time involved in a file access, plus a bit of time in inserting the code. With SSI you just output your data. You also save the space on your server for the HTML template file. So I'd use the SSI+CGI method.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question