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
> 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
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
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
> 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
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
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&
> 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
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
> 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
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
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
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
I do basically the same thing so the application picks up paths based on
which server it is running from.
I dont 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
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
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
16 matches
Mail list logo