Forum Moderators: open

Message Too Old, No Replies

Include files over multiple sites

         

pgkooijman

7:34 am on Sep 24, 2003 (gmt 0)

10+ Year Member



I use ASP and I have my own dedicated server. A lot of my sites use the same include files that I contain common functions that I use for all these sites.

Is there a way that I can use the same include file over multiple sites? The way it is now I have to update each included file for each site everytime I rewrite code in one of these scripts.

Perhaps something like a global include files? I have looked in google but I am unsure how this would be called.

BlobFisk

12:49 pm on Sep 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think that you can only include files that are on the same server (read site) as the page calling them.

duckhunter

1:25 pm on Sep 24, 2003 (gmt 0)

10+ Year Member



Create a Virtual Web on the folder where the common files reside then use the INCLUDE VIRTUAL function

<!-- #include virtual="/virtualwebfolder/commonfile.asp" -->

This can be used on any web on that server.