Help "including" a file - Is it a path or a default problem? (Posted by jfk)

They have: 59 posts

Joined: Jun 1999

Greetings.

I'm in the process of starting an e-zine and i use a lot the <!--#include file="bla.txt" --> statement.

My problem is that when i try to do an include of a file located in a root directory the ssi doesn't work.

For instance, if i put <!--#include file="../bla.txt" --> or even the full path <!--#include file="/home/www/domain/path/bla.txt" --> it still doesn't work. Does it work only with files located in the same directory as the .shtml file?

If you could help a newbie... oh well... Smiling

Thanks in advance,
Ricardo

They have: 141 posts

Joined: Aug 1999

Try this code:

<!--#include virtual="../blahblah.html"-->
'Virtual' works a little different than 'file'

----------
The dLo Network
http://dlo.net

They have: 59 posts

Joined: Jun 1999

Smiling))))))))

It worked!!! Thanks a lot! I could kiss you!! (cof cof)

Smiling))

Ricardo

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.