[thelist] CF: Determining which DB used.

.jeff jeff at members.evolt.org
Wed Sep 12 11:42:31 CDT 2001


raymond,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Raymond Camden
>
> I should have been more precise. The 'default' Server
> values are not hidden per se. They are in the docs. I
> was replying more to "Why can't I use Server like a
> Struct". The answer is, that if you could, it could be
> a potential security risk, not because of the data in
> the default server vars, but because of other data, for
> example, maybe you are at an ISP.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

are you implying that there is additional information hidden in the server
scope that isn't documented?  if not, could you clarify?

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> [...] however, it's not a big deal if you just use a
> substruct under Server.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

unfortunately, you can't create a substruct under server as server isn't a
valid struct.  when you attempt to create a substruct, you're really only
creating a variable with a dot in the name which appears to be under the
server scope, but is not.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Well, I'm pushing for it myself internally, but of
> course, I'm too low on the totem pole to make such
> decisions. ;)
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

what about the variables scope?  any chance of that being stored as an
actual structure so we can get a dump of all the unscoped variables whenever
we like?

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> No, what I meant was:
>
> <CFSET Server.MyApp = StructNew()>
>
> Then put your crap in there.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

ah, so you *were* suggesting a variable with a dot in the name.  if server
isn't a valid struct, you can't create a key for it and set that key as a
structure.  it's really an unscoped variable with a dot in the name.

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the thelist mailing list