You dont need a mapping in a shared hosting environment to make CFCs work. I
have dozens of them working in such an environment on plenty of web sites
without mappings.

I often have my cfcs in a folder named like _cfcs  (with an underscore) and
to call them all I need is something like:

<cfset users = createobject("component","_cfcs.userfiles.users").init() />

Haveing the cfcs exposed like that allows them to work sure enough, but also
exposes them to potential misuse.   So there are two things you can do in a
shared environment ....

[A]  move them outside the root, and call them with a mapping.  That
requires your system admin to set up a coldfusion mapping for you.   We do
that happily in a few minutes in AFPWebworks.com but many hosting services
dont.

[B]  set up a filter in the Application.cfm that if anyone directly calls a
URL containing an underscore, they're sent off to the home page or the bad
boys corner or anything else that suits you.   This is also useful for all
sorts of other files that you might want to protect from users calling
directly.

But the short answer to your question is that you dont have to have a
coldfusion mapping in order to use cfcs in a shared hosting environment.

-- 
Cheers
Mike Kear
Windsor, NSW, Australia
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243021
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to