Jump to content
Sign in to follow this  
johnnyg24

include file from another website hosted on same server

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,

 

Share this post


Link to post
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).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...