Solved

Using SSI and CGI for banners. Good?

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

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
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…
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…

726 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