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 D

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
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&#

RE: path outside webroot

2006-12-05 Thread Snake
ge- From: Bobby Hartsfield [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:\WINDOWS

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:\WINDOWS>cd . C:\WINDOWS>cd / 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

RE: path outside webroot

2006-12-05 Thread Snake
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

RE: path outside webroot

2006-12-05 Thread Snake
Go to command prompt and type "CD ." And then "CD /" And you will se ethe difference Russ -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: 05 December 2006 00:58 To: CF-Talk Subject: RE: path outside webroot I indeed can, but I don&

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 o

RE: path outside webroot

2006-12-04 Thread Bobby Hartsfield
then... ..:.:.:.:.:.:.:.:.:.:.:. Bobby 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, expand

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 de

RE: path outside webroot

2006-12-04 Thread Snake
I do something similar Russ mailto:[EMAIL 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

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

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

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... asd would go to the top of my web

RE: path outside webroot

2006-12-04 Thread Ben Nadel
Perhaps something like: Where the IS_LOCAL is a boolean as to whether the current enrivonment is Dev or production. As far as how to set that value, you can do a number of things. You can hard code it. You can check the CGI values (server name, http host???), you can check

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 thi