Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Docs on Another Server

Status
Not open for further replies.

bloise

Programmer
Jun 21, 2001
67
US
Greetings,

We have a request from a user that would like to create a web application. We would host the app on a server called A. The documents exist on another server (B), at another location. The database on server A, would contain a table that provides the directory structure to find the document of interest.

Is this possible to do...

Thanks for the help,
Mike
 
As far as I understand the question I beleive you can do that. I think you can actually use CFINCLUDE for that.

<cfinclude template = "
It seems like a bad idea as far as requiring 2 complete page requests from 2 seperate servers... but then I'm sure you have your reasons.



Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
No, you can't

You'd want to use cfhttp..

Code:
<cfhttp method="Get" url="...">
<cfoutput>#cfhttp.filecontent#</cfoutput>

CFINCLUDE, CFMODULE, CFFILE, etc all use paths.. They read the file into the current file.. cfhttp basically views a webpage as a browser and copies data about it and data from it into variables.

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top