cfinclude from another server

i have a coldfusion website.
i want to include mycfmpage.cfm page (which is on a anotherserver ) using cfinclude in my coldfusion website. Is this possible?
I tried sharing the folder in which mycfmpage.cfm resides and then mapping that folder as Z:\ on the original server where my coldfusion website resides and then adding that mappign into coldfusion administrator website.... But it did not work

pl help..

i cannot use cfhttp because i am afraid if it will change the whole design of my website
at999Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

parikaaCommented:
You can map the the folder in the cf admin mappings

http://www.adobe.com/livedocs/coldfusion/6.1/htmldocs/tags-p63.htm


ColdFusion searches for included files in the following sequence:

1. In the directory of the current page
2. In directories mapped in the ColdFusion Administrator for the included file
0
at999Author Commented:
Yes, but my files are on different servers.....
0
parikaaCommented:
There should still be a way:

http://kb2.adobe.com/cps/961/9616b854.html
0
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

ThatSharepointGuyCommented:
There are a few things you could do, but you've already covered what I would have tried first : adding the Z:\myDirectory\myFile.cfm to the CF Mappings within CF Admin page.  

Have you tried putting in the full url path in the cfinclude?  I've never tried to go cross-server, so i'm not sure if it would work, but perhaps you can do that.


0
_agx_Commented:
(no points)

>  But it did not work

It's probably because the account the CF Service is running under doesn't have sufficient permissions to access that drive.  Permissions are explained in the link parikaa posted above.
0
azadisaryevCommented:
by default CF runs as LOCAL SYSTEM user, and has no access rights to any network resources.
if you want cf to access network shares, you must run cf as a user (account) that has proper access rights to the share, and use UNC path to access it (not mapped drive letter).
the adobe kb article parikaa linked to above explains how to do this (see Option 1 there).

Azadi
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
at999Author Commented:
wow let me try that
0
at999Author Commented:
Thanks a lot ...
Running CF service as a network-admin type of user and putting in shared name - \\myotherserver\mywebsite into cf mappings list worked!!!

thanks to all of you...
0
at999Author Commented:
i have some security issues with this method - my supervisor does not like putting in userid/password on the service name ... any ideas/solutions? thanks
0
ThatSharepointGuyCommented:
The above experts who answered you question might know a different way to do it, but since I didn't stop monitoring this, i thought i'd add something in -

It doesn't matter what your supervisor does or does not like doing.  If he has a better way, he can put forth the method to do it by himself.  If he does not have any ideas about how to get it accomplished with a different method - he can eat this solution or re-think the way he product needs to be rolled out.

Just my 2 pennies.
0
_agx_Commented:
AFAIK, there isn't another way.  But to minimize risks, you really should use an account with only the minimum permissions needed - and not an admin level account.  Other than that, your only option is cfhttp, which has it's own disadvantages, like an extra http request.
0
at999Author Commented:
thnks again

what type of account should it be? like what permissions it should have, i too donot want to use an administrator account
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.