?
Solved

Using SSI and CGI for banners. Good?

Posted on 1998-05-13
1
Medium Priority
?
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Suggested Courses

752 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