Solved

Using SSI and CGI for banners. Good?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

757 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

21 Experts available now in Live!

Get 1:1 Help Now