Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include file

Status
Not open for further replies.

GaryC123

Programmer
Sep 10, 2002
1,041
NO
Is it possible to include a file on another server in an include statement? Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
As far as I know includes can only be relative paths, not absolutes.
So you cannot do a
<!--- #include file = &quot; --->

or

<!--- #include file = &quot;\\server\directory\include.inc&quot; --->

You can only use relative links....
<!--- #include file = &quot;../include.inc&quot; --->


JP
_______________________________________________
OutsideIntranets.com
Stop wasting time, get to work
 
I have been able setup a virtual directory in IIS of a directory on another server (on the same network) and then reference this with the include directive.

Note: The virtual directory setup in IIS is called “AnotherServer”

Code:
<!--#include virtual=&quot;AnotherServer/test.asp&quot;-->

I had permissions issues at first but the Network administrators here were able to work this out for me. Unfortunately, I don't know what exactly they did.

Hope this helps,

Thanks,

Gabe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top