Page 1 of 1

Can't get HTML include to work

Posted: Mon Aug 03, 2009 10:11 pm
by steve9876
I'm having a problem getting HTML include to work.

My directory structure is

/home/domain/public_html/work/Orders/subfolder/

The file I want the include in is in subfolder, and the file to be included is in work. (After I have things working, I plan to move everything from work up to public_html, but I don't think that's relevant here.)

I've tried
<!--#include virtual="/home/domain/public_html/work/file.htm"-->
and
<!--#include virtual="/../../file.htm"-->
and varying numbers of "/..", and "include file", and with and without a space before -->.

I keep getting "An error occured while processing this directive."

Any suggestions?

Re: Can't get HTML include to work

Posted: Tue Aug 04, 2009 6:36 am
by bala_1225
hi u can try it....this one...
<!--#include virtual="work/file.htm"-->

don't use full url....u can specify the sub folder path only..... That is enough......