Helpful Information
 
 
Category: vB3 General Discussions
Help with SSI in my Style?

Okay, I use SSI to incorperate my menu into my site. And I have built it around my forum, but the menu does not show up, it wont call in the SSI into the vB script? The code Im using works on my SHTML pages fine, but not in the .php files, is there any way to fix this? Here is the code im using:


<!--#exec cgi="/cgi-bin/insert/menu.pl" -->


Thanks,
snyx

PHP is not parsed for SSI. You have to use the PHP functions.

So how could I call it in then?

you could try
<?php include('/direct/path/to/menu.pl') ?>

but you have to have the direct paht to the menu.pl you could probably find a php script that does the same thing as menu.pl if that php include doesnt work.

I found a SWEET script, for what I need. Saves a whole step too, just <script src="includer.cgi?../file.txt"></script> it points to a 2kb cgi script, and works like a charm!










privacy (GDPR)