Can't get HTML include to work

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
steve9876
Forum Newbie
Posts: 13
Joined: Tue Jul 21, 2009 7:34 pm

Can't get HTML include to work

Post 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?
User avatar
bala_1225
Forum Commoner
Posts: 29
Joined: Tue Jul 28, 2009 3:20 am
Location: chennai,india

Re: Can't get HTML include to work

Post 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......
Post Reply