[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSI and .shtml (was Site Counter Script)



It was mentioned earlier about XbitHack and SSI.  Some servers of course
don't allow either. There is an alternative that i've used that actually
works.
--snip from perlarchive--
Subject How Do I Include My CGi Without SSI? Posted by sleuth (addict)
Posted on 12/17/00 06:30 PM
Say you don't have SSI (Server Side Includes) on your server but you want
to include a script from an html page or an ASP page or other types of
pages like that. You could use an Inline Frame which will bring in the
page, file, or script you want, in a cgi's case, you may just want it to
track the hits to the page, so You don't want the script to be seen, but
defiantly executed, you could easily point an Inline frame to your script
without letting the visitor know about it by making the frame 1 x 1
pixels, which is too small to notice. 
<IFRAME SRC="http://site.com/cgi-bin/counter.cgi" WIDTH=1 HEIGHT=1
SCROLLING="no" FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0></IFRAME> You
could adjust the size (measured in pixels) to whatever you wish, Inline
Frames are also good for binging in perl scripts that will show the server
date & time too, In that case you'd just adjust the Iframe's size so that
you can read the script's output. 
Sleuth
----- Original Message ----- From: "Gunnar Hjalmarsson" 
<mailbox@gunnar.cc> To: <ringlinklist@gunnar.cc> Sent: Tuesday, December
12, 2000 5:48 AM Subject: Re: [ringlinklist] SSI and .shtml (was Site
Counter Script) 
> > ringmaster-curio wrote:  > > > > When you turn on XBitHack in
.htaccess, all html files from that > > directory down will be parsed for
SSI--avoiding the necessity to > > change the extension to .shtml, but
this will slow things down.  > > I had no idea that .htaccess could be
used for this. Thanks Jeff and > Dave for the tip. > > I tried the
following .htaccess file at my own site: > > <Files ~
"/www/htdocs/gunnar/(index|search|webring/quotes).html"> > XBitHack on >
</Files> > > By using the <Files> directive in this way, only those three
.html files > that include SSI directives are parsed for SSI. This should
mean that > things are not slowed down more than would else have been the
case. > (Please correct me if I'm wrong.) > > / Gunnar > > Ringlink
homepage: http://www.gunnar.cc/ringlink/ > To unsubscribe, see instruction
at the homepage. >

Follow-Ups from:
"Oliver Bonkowski" <webmaster@webfehler.net>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]