[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
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
[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
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
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
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
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
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
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...
a href=/asd/a would go to the
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
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,
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
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
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
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
15 matches
Mail list logo