Utility Function: GetInstanceName()

I can't claim the core of this function as my own, it comes from a presentation by Adam Lehman on ColdFusion server administration. I wrapped his code snippet into a function for reuse.

ng.<" cf/f>
u    nct<ion/ cnafmief="
>
G
e    
t    Ins<tcfsetan cQeuNearmyeA"d daRcocwe(sasr=g"upmueblnitcs". qouutepruty=)" fal/se>"
    r
et    ur<ntycpfei=f"
sItsrAirnrga"y>(    a    
r    gu<mecnftrse.tduarnt ac)r>
ea    t    eO<bjcfsete clto(c"ajla.vcoal"u,m n"s j= rLuinsx.tkTeorAnrerla.JyR(uanr"g)u.mgeetnSetrsv.equrerNya.mcoelu(mn)L ist/) >

/>
    <    /<cffcufnlcotoipo nf>r

 

Comments

Jon Hartmann, July 2011

I'm Jon Hartmann and I'm a Javascript fanatic, UX/UI evangelist and former ColdFusion master. I blog about mysterious error messages, user interface design questions, and all things baffling and irksome about programming for the web.

Learn more about me.

Post a job. Find one. authenticjobs.com

Interested in becoming a sponsor? Contact me.