954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Include a file from another website

Please help! Can't seem to be able to figure out the syntax
I need to include a file that is located on the entirely deferent website.
Here's what I need to do, which, obviously doesn't work:

vicury
Newbie Poster
1 post since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

Put quite simply, you can't that way. The include directive is based off the Document root.

Why don't you just host the page on the same site as the one you want the include on?

If you can't do that, you'll need to employ page caching.

http://www.google.com/search?q=%2Basp+%2Binclude+%22page+caching%22&btnG=Search&hl=en&lr=&safe=off&c2coff=1

HawkeVIPER
Junior Poster in Training
72 posts since Jan 2005
Reputation Points: 10
Solved Threads: 4
 

ASP cannot 'include' page outside its server.

You can use the basic html script like frame or iframe. iframe is better which the page only appear on the location you want it to be, within your defined height and width.

zippee
Posting Whiz in Training
294 posts since Jan 2005
Reputation Points: 10
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You