In apache's doc about SSI it says that: "SSI is a great way to add small pieces of information, such as the current time. But if a majority of your page is being generated at the time that it is served, you need to look for some other solution."
That's alright but is somewhat unclear on some matters. For example does it mean that using S...
Has anyone found a way to get Server Side Includes to work inside a Magento product description?
I tried adding one and the published page did not show the content I'm trying to include.
For example, I added this to the product description field in the Magento Admin:
<!--#include virtual="../test.php" -->
...
Hi,
I've installed ServerSideIncludes module on my computer and it works great with one exception.
<!--#include virtual="meta.inc" -->
The line above is causing the problem. I know I must change virtual with file but I have a huge website and it means I must change at least 1000 line of code like this and I am looking for a way to ru...
How can I use the Server Side Includes module in IIS to include and process a ColdFusion file from a .htm file? I'm currently doing something like this in my html file:
<!--#include virtual="navmenu.cfm"-->
This includes the raw contents of the navmenu file. I need it to execute the ColdFusion code and return the output of that proces...
I am trying to enable server side includes in some plain html files. I need help enabling ssi via IIS on the localhost. I am running XP Pro, and using both ie8 and firefox to test the files.
Thanks for your help.
...
I have a very simple SSI to include a footer on an HTML page. When I edit/upload files using NetBeans the SSI does not execute. If I open/save said files in another editor (e.g. cPanel editor, TextWrangler, Notepad++) it works just fine. I was thinking it might be related to the encoding of the file, but haven't had any luck resolving th...
I have a setup where my nginx is in front with apache+PHP behind.
My PHP application cache some page in memcache which are accessed by nginx directly except some dynamic part which are build using SSI in Nginx.
The first problem I had was nginx didnt try to use memcache for ssi URI.
<!--# include virtual="/myuser" -->
So I figured t...
in the html file:
<!--#exec cgi="/cgi-bin/test.pl"-->
the perl script:
#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print "<input type=\"hidden\" name=\"aname\" value=\"avalue\">\n";
print "<img src=\"/cgi-bin/script.pl\" />";
This does not give me an 'error processing directive' error, nor does it output my HTML inplace of...
Is there any way for a server-side include to determine what file it is being included in? I would like to do something like this:
<ul id="menu">
<!--#if expr="$URL = index.html" -->
<li><span>Home</span></li>
<!--#else -->
<li><a href="index.html">Home</a></li>
<!--#endif -->
<!--#if expr="$URL = about.h...
var ip= ''; returns 127.0.0.1 and not something like 65.175.203.209
also my web host does support ssi.but not asp
...
I have a site which uses simple server-side includes to pull in the header and footer on some static HTML pages:
<!--#include virtual="/_top.html"-->
...
<!--#include virtual="/_bot.html"-->
The downside is that IIS can't cache SSIed pages (or more specifically, it won't allow browsers to cache the page no ETag nor Last-Modified h...
This may be a heretic question in a way. We have large site where lot of pages are still in ASP. Mostly, there are not really dynamic but they include (via SSI or Server.Execute) periodically regenerated chunks of HTML. It may look like a poor man's caching, but it has been working really well and I'm guessing that Microsoft has heavily ...
Hi,
This isn't a specific code question, but more of a conceptual question. I'm trying to figure out which direction I should go in solving this problem.
Here is the site testsite
Right now when you hover over interior and click Mastersuite, it takes you to a page for the master suite, which includes the navbar through SSI, but when ...
Hello
I include in some pages this code:
$_GET['a'] = 'stats2';
include "/var/www/forum/ssi.php";
on main page (www.musite.com) its work fine. But on other pages like www.mysite.com/bigpage/, www.mysite.com/about/ etc. ssi.php return part of forum page (a lot of css an js).
How can i fix it?
...
Hey everyone... I'm not too familiar with PHP... but I have PHP code that basically "includes" a file if a condition exists. This PHP code is going to be pretty lengthy and I was wondering if it was possible to create a .php file, and just INCLUDE THAT in my shtml files? What the below is doing is placing the correct navigation bar in ...
Hello,
i have to get url and parameters with SSI (only with SSI), but i cant find any solution, so im here
for example:
http://www.test.com/abc.html?data=something
and i have to get value of parameter "data"
can someone help me?
...