Solved

Using SSI and CGI for banners. Good?

Posted on 1998-05-13
1
240 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
The viewer will learn how to dynamically set the form action using jQuery.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now