Sometimes I'll have the ini file wherever the CFML engine is actually running from. (ie C:\ColdFusion9)
Users can frequently figure out where that is, you can code it by calling ExpandPath(server.coldfusion.rootdir), and it's not in the web root where someone could actually browse it.

You can put config files in your web path, but then you have to take extra steps to prevent browsing access. This may often involve .htaccess stuff, or placing the .cfm extension on the end and a <cfabort/> tag at the top of the text. But that requires that the average user not screw all that up (remember, our model requires that average users go change it), and just introduces more failure points.

That's been my experience. Hope it helps.
Al


On 3/17/2012 6:09 PM, Matthew Woodward wrote:
On Sat, Mar 17, 2012 at 6:03 PM, Aaron J. White <[email protected]> wrote:
Hello Alan,

Thanks for the reply. Didn't even know that function existed. It is
close, but I want to make the application where the user can literally
just plop the files in their web root and it just works. Don't want
the user to have to worry about moving the .ini file or selecting a
different folder as the root.

I don't understand why they'd have to do that in this scenario? Nothing about that function dictates where the file is and using ExpandPath to point to the webroot or any directory underneath it you could put the file wherever you want. I'm just missing why you think they'd have to move it. You could have a file like that in a config directory in the application's directory and grab that.
 
The settings/config file will hold
passwords, etc. The GetProfileSections function also seems to only
work on App load like my current solution.

I must be missing something here too--you can call that function whenever you want ...

-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en

--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en

Reply via email to