...

Nested Virtual Includes?

ashattuc
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?

Thanks,
ashattuc

MCookie
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" -->

Phip
08-18-2002, 06:21 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum