View Full Version : .htaccess
Hi, I need to use a SSI in my cgi...what do I add to my script to make that possible?
Thanks,
Ryan
Jacob
03-31-2000, 06:03 AM
Hi Ryan,
Using SSI inside a cgi script is imposssible, as you are defeating the purpose of ssi http://talkboard.123webmaster.com/ubbhtml/smile.gif When you use an ssi call you are either calling a cgi script or a file to be loaded live, everytime the page is accessed. This can be easily done with cgu/perl within your script.
First I would need to know what kind of SSI call you are making, is it to access another script, such as a poll? or are you just trying to load a file, like a header or footer?
------------------
Jacob Wheeler
Co-Founder / Web Engineer
Big Resources Network
jacob@bigresources.net
ICQ: 390147
I am calling a menu file. it is an inlcude virtual command.
Ryan
Jacob
03-31-2000, 05:30 PM
Ok cool,
Here is some code that will do what you need:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>
open(FILE,"/path/to/menu.html");
@menu = <FILE>;
close(FILE);
[/code]
Then all you need to do is put @menu in your script wherever you would like the menu to appear. Be sure to place the above code before you want to display the menu.
Hope this helps!
------------------
Jacob Wheeler
Co-Founder / Web Engineer
Big Resources Network
jacob@bigresources.net
ICQ: 390147
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.