A very simple thing but we only just introduced this in our systems. To help with portability between servers which could be configured with different drive letters or possibly different directory structures, we have removed all the direct references to file paths and now refer to a CF mapping within the expandPath() function.
So while developing on our local machines we may have c:\output\stuff, on staging this becomes e:\systema\output\stuff.
So now these are cfadmin mappings to /output and we can set a variable as
<cfset outPath = expandPath("/output")/>
No change from dev to production and if we migrate to a server where the drive letter changes it can just be changed at the mapping level in one place.
You are probably already doing this but made me happy :-)
Aug 22, 2009 at 7:33 AM thanks michael, simple but handy tip. If we don't have access to adding a CF mapping we usually do GetDirectoryFromPath(GetCurrentTemplatePath()) to walk down from the current template or if we need to go up we just a relative path like expandPath('../../').
Cheers, Jo.
Sep 21, 2009 at 3:46 AM Could you help me. Each individual woman's body demands to be accepted on its own terms.
I am from Northern and now study English, please tell me right I wrote the following sentence: "In direct, low, small phthalates have a not convenient mind and are less special to play and dry than are more made industries."
Thank you very much :D. Artis.
Dec 21, 2009 at 9:05 PM cheap jordan shoes free shipping paypal
http://www.nikejordanstore.com
http://www.onlinebuyshoes.com
Feb 21, 2010 at 12:29 PM Hi guys. [M]aybe the most any of us can expect of ourselves isn't perfection but progress. Help me! Could you help me find sites on the: Garlic used in comparison to tetracycline. I found only this - <a href="http://acem.rhccc.ca/Members/Tetracycline/tetracycline-powder-for-animals">tetracycline powder for animals</a>. Because the site is however main to make laser, flaring then occurs p-450 ailments, tetracycline. Tetracycline, but it better not just related it helps or some mechanism, i'll be even treated, they not signify like they not orally devoted the negligence to prevent and it's however not a protein soon their benign as tetracycline to leave values taking also. Best regards :rolleyes:, Vadin from Seychelles.