> I read somewhere that cf searches for an application.cfm > file all the way > up to the root > so it's actually quicker to put in an almost empty > application.cfm (I think > you need an application name) > than no application.cfm
Nope... no application name necessary... You don't even need a <cfapplication> tag in your application.cfm file... For that matter, you can use <cfapplication> in any file you want, or even have multiples of them in a single request ( although I would recommend not doing this often to save confusion and manageability )... but something like this will actually work: <cfset appname = "my1stapp"> <cfapplication name="#appname#"> <cfset request.appdata = duplicate(application)> <cfparam name="copyappdatainto" type="string" default=""> <cfapplication name="#copyappdatainto#"> <cfset temp = StructAppend(application,request.appdata,false)> <cfapplication name="#appname#"> This block of code would take application variables from one application, copy them to the request scope, move itself over into the 2nd application, copy the application data from the previous application into the new application and then move back to the original application... Luckilly, I've never run into a situation where this was necessary. :) Although I did find the fact that you can do this useful recently in updating my cms installer and configuration tool. Getting back to the original subject however, :) if you're just wanting to stop the CF Server looking for an application.cfm in a parent directory or the drive root, you can just put a comment in it like <!--- This isn't the application you're looking for. Move along... ---> Isaac Certified Advanced ColdFusion 5 Developer www.turnkey.to 954-776-0046 > At 09:40 am 27/08/2002 , you wrote: >>Hi, >> >>When is it worth it to make an application.cfm file? Do >>you judge it on the >>size of the site or do you just build one everytime? I >>personally haven't >>seen a need for it, but I built a fairly large site in CF >>about 3 years ago >>that I might bring back which almost completely relies on >>CF (4.5). I'm just >>curious to see what the "norm" is. >> >>Thanks >> >>Phil >> >> > __________________________________________________________ > ____________ > This list and all House of Fusion resources hosted by > CFHosting.com. The place for dependable ColdFusion > Hosting. > FAQ: http://www.thenetprofits.co.uk/coldfusion/faq > Archives: > http://www.mail-archive.com/[email protected]/ > Unsubscribe: > http://www.houseoffusion.com/index.cfm?sidebar=lists ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

