NewsPro FAQ

NewsPro FAQ > viewnews >
Can I use server-side includes (SSIs) in viewnews.cgi?

 

Kind of. First, some servers support SSIs in CGI scripts automatically, in which case SSIs will behave exactly as they would in HTML. Most, however, don't. Because of this, viewnews.cgi has builtin handling for #include file SSIs. There are some limitations, though:

- ONLY the <!--#include file="/full/path/to/file" --> type is supported. #include virtual is NOT supported.
- You cannot execute commands or run CGI scripts, only include files.
That said, <!--#include file="/full/path/to/file" --> should work if placed into viewnews.tmpl.


 

Back to NewsPro FAQ