> -----Original Message-----
> From: Will Tomlinson [mailto:[EMAIL PROTECTED]
> Sent: Sunday, December 16, 2007 10:45 PM
> To: CF-Talk
> Subject: Does anyone know of a non-idiot CrystalTech support person?
> 
> I'm hopin maybe Jim D. or someone with CT hosting can point me to a
> support person they trust and deal with regularly.

I'm sorry - to be honest with so little work being done on my own site (and
the fact that I run a dedicated server) I've not had to call support in
(quite literally) years.
 
> I'm helpin a friend with his site at CT. If I place a simple
> expandPath("/images") on a page, it gives me a path to another person's
> site. Kinda entertaining... for a minute or two.
>
> Anyway, CT tells us CF is mapping the path wrong, and we need to change
> the directory name and the path name because it's gettin crossed up.
> And they says we need to use a mapping. lol! Too funny!
> 
> I guess all the folks with images folders need to change their names?

Well... that actually sounds right - this IS a shared server.  Only one
person can "own" a mapping since you're all sharing an instance of CF.  (I
do love CF, but shared instance friendly it isn't.)

The CF function is expanding the path using it's mappings - and that mapping
is already set to a folder. CF doesn't allow for application-specific
mappings (something I lobbied hard for a long time ago), just
instance-specific mappings.

I think what they're saying (it sounds like badly) is that you can create a
new mapping for you if you like, as long as it's unique on the server
(perhaps "myimages" or whatever) and change your code to use that.

It used to be (maybe it's changed) that mappings were dealt out on a "first
come, first serve" basis.  I had a similar problem long, long ago with a
mapping called "CFC" - same situation, somebody else had already requested
it and my app needed it.  That's actually when I decided to go to a
dedicated server.

This is also one of the reasons that my CF development libraries have their
own path expansion functions: they work without needing CF mappings set up.

Here's the library page (the "DP_Paths" component is in the Utility
library):

http://www.depressedpress.com/Content/Development/ColdFusion/DPLibraries

And here's a tutorial on using the "paths" component:

http://www.depressedpress.com/Content/Development/ColdFusion/DPLibraries/Art
icles/Tutorial_DPPaths

Basically you instantiate at the root of your application (from
application.cfm or application.cfc for example) and it uses that information
to generate paths from everywhere else.

It's probably too heavy for you need but I know it works on CT shared
servers! ;^)

Jim Davis


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294901
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to