08-17-2002, 03:47 AM
I'm trying to figure out how to call a file ( with the <--#include virtual='etc'--> tag) within a called file. Every time I try to do this, it calls the original included file, but displays the code of the include, rather than actually calling the file in. Can anyone point me in the direction of how to get this to work?
08-18-2002, 02:48 AM
Well, I do it like this: in a page is the call for an include:
<!--#include virtual="include.html" -->
then, in the include.html is another call:
<!--#include virtual="anotherinclude.html" -->
or, if it's a cgi:
<!--#exec cgi="/cgi-bin/makeitwork.cgi" -->
make sure to put spaces before the directory for example:
<!-- #include " /dir/file.asp" --> ' wont work!
<!-- #include "/dir/file.asp" --> ' will work!
maybe i'm dumb, but i ran into that i spent forever trying to figure out the problem