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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfinclude when the file isn't on the same server

Status
Not open for further replies.

junkjones

Programmer
Jul 14, 2000
52
GB
Hi Guys,

I'm trying to use the <CFINCLUDE> tag to include a file that's on another server (it's the local newspaper's page they have posted for people who want to put up each day's headlines on their page). But using <cfinclude template=&quot; doesn't work!! Reading CF's help files, it keeps talking about 'mapping' the server, but I don't have access to CF Server. Is there any other way to include a file on another server?

Thanks!!!
 
I don't think there is any way to accomplish this through <CFINCLUDE>. It looks like you just want to display their news page on one of your pages? If so, why not just use <CFHTTP>:

<cfhttp url=&quot; method=&quot;GET&quot; resolveurl=&quot;false&quot;></cfhttp>

And then output the variable CFHTTP.FileContent wherever you want it.

Andrew
amayer@sonic.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top