>- see footer for list info -<
I've always used CGI.SERVER_NAME under the assumption that the protocol is
not included. Also take into account no www being in the URL.

betenoir.net or www.betenoir.net

Adrian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Damien Gallagher
Sent: 06 July 2006 10:01
To: Coldfusion Development
Subject: [CF-Dev] CGI.SERVERNAME


>- see footer for list info -<
Morning all,

I have the code below on my site to check whether a transaction is going
through on the live server. If it's not on live, then the test_status
param is set to true and the transaction dealt with accordingly.

<cfset request.liveServer = "http://www.betenoir.net";>

<cfif CGI.SERVER_NAME neq "#request.liveServer#">
    <cfset request.test_status = "true">
</cfif>


Problem is, very occasionally, a transaction comes from the live server
but is being flagged as a test in the code block above. How can this be?
Does CGI.SERVER_NAME sometimes not work?

Thanks, Damien
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to