...

View Full Version : error processing server side include.



bazz
02-10-2005, 03:29 PM
Hi,

I have an shtml page made up of three files. The middle of the three throws up an error yet the url workos when you type it through the address bar of the browser.

Can anyone suggest what I may have done wrong?
Here are the three lines where toe first and last work.


<!--#include virtual="header.html"-->
<!--#include virtual="http://cms.mydomain.com/cgi-bin/pier36/Events/publicindex.pl/Events"-->
<!--#include virtual="footer.html"-->





Bazz

mcdougals4all
02-10-2005, 07:42 PM
I've never used this type of include, but maybe it's the absolute path?

Are you able to include the header or footer by calling the full URI?

Graft-Creative
02-11-2005, 12:07 AM
Bazz, this really is a stab in the dark, as I know next to nothing about this - but I think the include call and the absolute path could be at odds with each other?

Give this a try:



<!--#include virtual="header.html"-->
<!--#include file="http://cms.mydomain.com/cgi-bin/pier36/Events/publicindex.pl/Events"-->
<!--#include virtual="footer.html"-->


I think 'virtual' and 'file' depends on the type of path you use - I dunno, I'm out of my depth on this, but this is what I could gather from a brief conversation this afternoon, with a friend who uses asp quite a bit.

Kind Regards,

Gary

rmedek
02-11-2005, 12:14 AM
Yep, looks like you're close, Gary...

http://www.w3schools.com/asp/asp_incfiles.asp

Hopefully that'll answer everything :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum