All,
I'm trying to strip the dots out of ip addresses. I'm trying to use
it as part of a unique numeric value for e-mail confirmation.
69.124.49.27
Thanks.
D
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244906
replace(yoyoma, '.', '', 'all')
- Original Message -
From: [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Tuesday, June 27, 2006 4:33 PM
Subject: Strip dots out of ip address
All,
I'm trying to strip the dots out of ip addresses. I'm trying to use
it as part
]
Sent: Tuesday, June 27, 2006 4:33 PM
To: CF-Talk
Subject: Strip dots out of ip address
All,
I'm trying to strip the dots out of ip addresses. I'm trying to use it as
part of a unique numeric value for e-mail confirmation.
69.124.49.27
Thanks.
D
cfset newip = replace(ipAddress,.,,all) / ?
On 27/06/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
All,
I'm trying to strip the dots out of ip addresses. I'm trying to use
it as part of a unique numeric value for e-mail confirmation.
69.124.49.27
Thanks.
D
No need for anything fancy there:
cfscript
strIP = '69.124.49.27';
strOut = replace(strIP,'.','','ALL');
writeOutput(strOut);
/cfscript
Best,
Phillip Holmes
Quoting [EMAIL PROTECTED]:
All,
I'm trying to strip the dots out of ip addresses. I'm trying to use
it
I'm trying to strip the dots out of ip addresses. I'm trying to use
it as part of a unique numeric value for e-mail confirmation.
69.124.49.27
IP address dotted-quad values can be converted directly into integers:
http://www.cflib.org/udf.cfm?ID=946
I wouldn't recommend just removing the
-Original Message-
From: Phillip B. Holmes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 3:42 PM
To: CF-Talk
Subject: Re: Strip dots out of ip address
No need for anything fancy there:
cfscript
strIP = '69.124.49.27';
strOut = replace(strIP,'.','','ALL');
writeOutput
On 6/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I'm trying to use
it as part of a unique numeric value for e-mail confirmation.
Be careful though. IP addresses can change all the time. I rebooted
today and got a different one.
Cheers,
Sam
8 matches
Mail list logo