View Full Version : help with ssi - include virtual
lucid
September 6th, 2001, 23:34
Hi. I'm having trouble with the include virtual with server side includes. my host has ssi enabled, and everything works fine when I use the include file command, but I always get the "an error has occured while processing this directive" message when I use the virtual path. I'm hosted by www.ihostee.com and my url there is http://www.ihostee.com/~kholmes . The header and footer includes are on txt format and are located in a folder named "ssistuff" in my main directory. Anyone know how to work out the virtual path? Cos I'm lost :confused2
agent007
September 10th, 2001, 17:46
Well, here's how it should work:
<!--#include virtual="ssistuff/whatever.ext" -->
crj
September 10th, 2001, 19:02
i think if you use virtual you have to have the path from the domain name... so it would be..
<!--#include virtual="/~kholmes/ssistuff/whatever.ext" -->
if you use file it would be relative to where you are calling it from... so it would be
<!--#include file="ssistuff/whatever.ext" -->
or if its in the same directory it would be
<!--#include file="whatever.ext" -->
but i'm not completely sure.....
by looking at your page it looks like you already figured it out...
meow
September 10th, 2001, 21:07
Include virtual is resolved from the root. A slash usually denotes the root. Try like so:
<!--#include virtual="/ssistuff/whatever.ext" -->
webspaceseeker
September 10th, 2001, 23:07
You change the text color to white when I hover with my cursor over it. This look crappy. Maybe someone might think your site is incomplete.
lucid
September 11th, 2001, 04:38
thanks for the help everyone, I think I've got it sorted out now. :)
And yeah, the stylesheet needs changing. I'm just so damn lazy :rolleyes:
meow
September 11th, 2001, 04:55
Originally posted by crj
i think if you use virtual you have to have the path from the domain name... so it would be..
<!--#include virtual="/~kholmes/ssistuff/whatever.ext" -->
Sorry, I didn't see your post. Is that it? I've always had "/" mean my account's root. For the first time I have an account where it doesn't. Have I just been lucky earlier I wonder? I'm not speaking about SSI now, but relative paths starting with "/" in general. :confused:
Weapon
September 11th, 2001, 06:10
huh? do always have to put a / infront?
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.