[ic] User IP
Lyn St George
lyn at zolotek.net
Mon Jan 26 09:28:12 EST 2004
On Mon, 26 Jan 2004 10:01:09 -0500, Aaron Rubin wrote:
>I'm trying to get user's IP in payment module for location based credit
>card validation.
>$CGI::remote_addr is giving me the servers IP. How do I get the IP?
It should do - you're not trying to run this from a shell on the
server and reading the wrong ip?
Eg:
my $ip = $CGI::remote_addr;
my $host = $CGI::remote_host;
::logDebug("ip=$ip, host=$host");
running a test order through the catalogue will log the correct
ip and host of the originating system.
>Thanks.
>aaron
>
>--
>Aaron Rubin
>http://www.KarateDepot.com
>1-877-216-2669 x12
-
Cheers
Lyn St George
+---------------------------------------------------------------------------------
+ http://www.zolotek.net .. eCommerce hosting, consulting
+----------------------------------------------------------------------------------
More information about the interchange-users
mailing list