...

View Full Version : Server Side Include



Outshine
12-15-2004, 09:28 PM
Hello,

The server I'm developing for does not support .php or .asp so I am using the .shtml SSI method:

<!--#include virtual="menu.txt" -->

which is included into an .shtml file. It all works fine, except when I try to use an absolute path for the include file, i.e:

<!--#include virtual="htttp://www.mysite.com/menu.txt" -->

When that is ran I get the following error:

"[an error occurred while processing this directive] "

I usually use .php for all my SSI, which has no problem with absolute paths. Has anyone experienced a similiar problem while using the .shtml method for Server Side Includes?

Thanks!

hemebond
12-15-2004, 09:50 PM
<!--#include virtual="htttp://www.mysite.com/menu.txt" -->Well, first make sure you're not actually using htttp, then try using the file attribute instead of virtual.

Outshine
12-15-2004, 11:29 PM
Thanks for the reply.

Yes, I am actually using http in the file (typo only in the message), I tried using the file attribute and received the same result.

Luke

hemebond
12-16-2004, 12:31 AM
Can you post more code? And perhaps a link to your site?

ghell
12-16-2004, 03:24 PM
i thought you had to post a physical path such as C:/website/menu.txt .. ive never seen it used with http://..../menu.txt but then i dont use shtml :p

i know at least in asp, virtual is an absolute physical path and file is a relative physical path

Outshine
12-16-2004, 09:02 PM
Hemebond - What other code would be useful?

The link to the site is:

http://www.outshinewebdesign.com/GIG/home.shtml

Ghell - The problem is I don't have a web server on my machine, I'm testing this on a normal web server, so I don't think I can use a absolute path like:

C:\site\etc

hemebond
12-16-2004, 11:30 PM
Where's the error occuring? I need some code.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum