I'm trying to get the fully qualified name of the server on which CF is
running (e.g., myhost.mydomain.com). I've tried using CGI.SERVER_NAME, but
this has two problems:
1) if the request comes from within my domain (like http://myhost/foo.cfm),
the value of CGI.SERVER_NAME is simply "myhost".
2) if the request is the IP address (http://xxx.xxx.xxx.xxx/foo.cfm), then
CGI.SERVER_NAME will be the IP address.
So how do I get "myhost.mydomain.com"? I basically want to set a variable
"application.serverName", so I only need to get it once, but I don't want
to hard-code it.
Gregory M. Saunders, Ph.D.
Senior Design Architect
Cognitive Arts Corporation (http://www.cognitivearts.com)
120 S. Riverside Plaza, Suite 1520
Chicago, IL 60606
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.