Print Page | Close Window

Including a File

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=4537
Printed Date: 28 March 2026 at 7:09pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Including a File
Posted By: zMaestro
Subject: Including a File
Date Posted: 26 July 2003 at 1:24am
sorry, this question may be a basic one
 
is there a way I can include a file using the physical path to it.. something like:
 
<!--#include file="D:\SiteData\webppliance\conf\domains\dotASP\Inetpub\wwwroot\dotASP\file.asp"--> (didn't work!!!)
 
if not... I have two domains want them to use the same file that contains variables, is there a way of making this?
 
Thanks.



Replies:
Posted By: Bunce
Date Posted: 26 July 2003 at 4:33am

Don't think you can include files across domains.

Probably need to use XMLHTTP component or expose your variables using a web service.

Cheers,
Andrew



-------------
There have been many, many posts made throughout the world...
This was one of them.


Posted By: zMaestro
Date Posted: 26 July 2003 at 5:03am

hmm.. it will not be across domain... I just want it to work through the local path...

on the local server I have it works after putting some ../ but unfortunately, the ../ is not allowed in the include by my host.

here is how it works locally:

<!--#include file="../../../dotasp/Inetpub/wwwroot/dotASP/*.asp"-->



Posted By: Bunce
Date Posted: 26 July 2003 at 5:06am
include virtual

-------------
There have been many, many posts made throughout the world...
This was one of them.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net