Jump to content

include file from another website hosted on same server


johnnyg24

Recommended Posts

Hello,

 

I have two websites running on my web server. Is there a way to include a file from website A on website B?

 

I've tried:

 

<!-- #include file="http://www.websiteA.com/incTop.asp" -->

 

and

 

<!-- #include virtual="http://www.websiteA.com/incTop.asp" -->

 

and get:

 

The include file 'http://www.websiteA.com/incTop.asp' was not found.

 

Thank you,

 

Link to comment
Share on other sites

As far as I can tell ASP doesn't support that. You would need to fetch the contents of the remote page, write it to a local file, include the file, then delete the file (or leave it there, if you want to keep track of local caching).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...