SMF Support > SMF 1.1.x Support
Problems with includes and SSI.php
Vhexor:
Hey, I've just found out about ssi.php, and I'm eager to get it working. All of my webpages must be shtml because I already use includes for the website's template. For some reason the shtml includes do not work at all for ssi.php. Even if I go to the ssi_examples.shtml file, it shows nothing but 404 errors. It works fine when I include any other page, but for some reason ssi.php?ssi_function=welcome will not work. I think it has something to do with the question mark in the name. Here is the code for my include:
--- Code: ---<!--#include virtual="community/ssi.php?ssi_function=welcome" -->
--- End code ---
[Unknown]:
Are you on IIS or Apache?
-[Unknown]
Vhexor:
I'm running IIS, sorry about the long time to reply, I was watching a movie...
[Unknown]:
No problem at all.
I'm sorry, though, to tell you that IIS can't really do SSI includes with query strings. The problem is that it doesn't like to process scripts, just include files.
You may wish to look into the <!--#exec --> command, but the likelyhood that this will work for you, especially on a standard host, is low indeed.
I would really recommend you try either using PHP (you can easily change any ssi include to PHP code...) or try to get a host with Apache. (or somehow convince your current one to use Apache.)
-[Unknown]
Vhexor:
I run my web server from home and I'm the administrator of the server :D, I can pretty much do anything I want. Why do you say that <!--#exec--> won't work. How can I make it work?
Navigation
[0] Message Index
[#] Next page
Go to full version