...

View Full Version : Is there a way to include a file from another Domain



musher
11-23-2005, 02:48 PM
Ok this is a strange one, but company politics are in play here, yea I wish they would just give me FTP access to their server.

I've used includes before but having problems with this (not even sure you can do it).

I have a site that was set up and is maintained by another company (mycompany.com) there is a Whats New section on the home page I have another site (mycompany.biz).
I would like to set the Whats New section on the .com site to be an included file from the .biz site (since I can maintain pages on the .biz site but not the .com site)

So I'm looking to do something like this on the index.htm of the mycompany.com site, but it's not working.


<!--#INCLUDE file="www.mycompany.biz/includes/whatsnew.htm"-->

MattyUK
11-23-2005, 03:24 PM
If you can use PHP then yes it is possible. I don't think it is using a INCLUDE exec.

felgall
11-23-2005, 08:43 PM
Try adding http:// to the front of the domain name in the file=

]|V|[agnus
11-23-2005, 09:25 PM
Most languages I know of don't have a mechanism for including a file like that out of the box. But most languages do have HTTP classes or functions which would allow you to request that file, and inject the response into your document.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum