RE: path outside webroot

2006-12-05 Thread Snake
[mailto:[EMAIL PROTECTED] Sent: 05 December 2006 05:59 To: CF-Talk Subject: RE: path outside webroot I indeed can, but I don't get why expandpath('/') returns something completely different than expandpath('.') especially if, like you said, CF doesn't know anything about my IIS setup

RE: path outside webroot

2006-12-05 Thread Bobby Hartsfield
Go to command prompt and type CD . And then CD / And you will se ethe difference No you won't :-) C:\WINDOWScd . C:\WINDOWScd / C:\WINDOWS I know what [.] [..] and [/] are as far as their meanings in a directory structure go... which is why I didn't get that ExpandPath('.') gave me the

RE: path outside webroot

2006-12-05 Thread Snake
[mailto:[EMAIL PROTECTED] Sent: 05 December 2006 16:11 To: CF-Talk Subject: RE: path outside webroot Go to command prompt and type CD . And then CD / And you will se ethe difference No you won't :-) C:\WINDOWScd . C:\WINDOWScd / C:\WINDOWS I know what [.] [..] and [/] are as far

RE: path outside webroot

2006-12-05 Thread Bobby Hartsfield
The wwwroot of the cf install directory is returned either way. ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Snake [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 11:21 AM To: CF-Talk Subject: RE: path outside webroot I'm

RE: path outside webroot

2006-12-05 Thread Dave Watts
I saw the same thing in the docs Dave, but it still seems that it does something other than it should or at least something other than what anyone would want it to do even though it takes 1 option... a RELATIVE path, the docs claim the slash is read from a mapping... but, if the path

RE: path outside webroot

2006-12-05 Thread Bobby Hartsfield
Makes sense (I guess lol) ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 6:17 PM To: CF-Talk Subject: RE: path outside webroot I saw the same thing in the docs Dave

RE: path outside webroot

2006-12-04 Thread Paul Vernon
We use config files that are based on host names... We used to use ini files but now we use XML for simplicitys sake our ini files were structured like this... [default] Mysecurepath=c:\secure\ [development.site.com] Mysecurepath=d:\secure\ [www.site.com] Mysecurepath=e:\secure\ By doing

RE: path outside webroot

2006-12-04 Thread Ben Nadel
Perhaps something like: cfif IS_LOCAL cfset strDocumentRoot = ExpandPath( ../../A/ ) / cfelse cfset strDocumentRoot = ExpandPath( ../A/ ) / /cfif cfcontent file=#strDocumentRoot#YOUR_DOC_HERE.doc / Where the IS_LOCAL is a boolean as to whether the current

RE: path outside webroot

2006-12-04 Thread Bobby Hartsfield
I do basically the same thing so the application picks up paths based on which server it is running from. I don’t use expandpath() though. For me, expandPath('/') gives the wwwroot of the CF install directory and NOT the path relative to my IIS setup. Example... a href=/asd/a would go to the

Re: path outside webroot

2006-12-04 Thread Jake Churchill
Add an application variable. Eric J. Hoffman wrote: We have a document storage requirement...and we want to store the files outside the webroot and deliver them via cfcontent, in order to prevent hotlinking of files and added security, etc. We have our testing server, and our live server for

Re: path outside webroot

2006-12-04 Thread Casey Dougall
On 12/4/06, Jake Churchill [EMAIL PROTECTED] wrote: Add an application variable. Eric J. Hoffman wrote: We have a document storage requirement...and we want to store the files outside the webroot and deliver them via cfcontent, in order to prevent hotlinking of files and added security,

RE: path outside webroot

2006-12-04 Thread Snake
PROTECTED] Sent: 04 December 2006 21:47 To: CF-Talk Subject: RE: path outside webroot We use config files that are based on host names... We used to use ini files but now we use XML for simplicitys sake our ini files were structured like this... [default] Mysecurepath=c:\secure\ [development.site.com

RE: path outside webroot

2006-12-04 Thread Dave Watts
I don't use expandpath() though. For me, expandPath('/') gives the wwwroot of the CF install directory and NOT the path relative to my IIS setup. As it should. CF doesn't know anything about your IIS setup. From the docs: To resolve a path, this function uses virtual mappings that are

RE: path outside webroot

2006-12-04 Thread Bobby Hartsfield
Hartsfield http://acoderslife.com -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 7:53 PM To: CF-Talk Subject: RE: path outside webroot I don't use expandpath() though. For me, expandPath('/') gives the wwwroot of the CF install directory

RE: path outside webroot

2006-12-04 Thread Dave Watts
I indeed can, but I don't get why expandpath('/') returns something completely different than expandpath('.') especially if, like you said, CF doesn't know anything about my IIS setup... Slashes are resolved using mappings, as per the docs. Dots are resolved using the current location on