Well, if you want to hardcode it. You'll have to re-code for IPv6 :).
Chris Evans
[EMAIL PROTECTED]
http://www.fuseware.com
-----Original Message-----
From: Brandon Whitaker [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 10, 2000 1:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Testing Assignment
>I'm holding back from posting my tag result to the gallery so I can see
what
>others will try. If anyone wants the tag now without trying to do it
>themselves, contact me off list.
Something like this?
<cfSetting enableCFOutputOnly="yes">
<cfScript>
// 2 vars for tag:
// ip = address to translate
// variable = name of returned var
// ex. <cf_dip ip="192.168.100.1" variable="thisIP">
// <cfOutput>#thisIP#</cfOutput>
ipArray = listToArray(attributes.ip,".");
returnVar = 'caller.' & attributes.variable;
returnIP =
(ipArray[1]*16777216)+(ipArray[2]*65536)+(ipArray[3]*256)+ipArray[4];
'#returnVar#' = returnIP;
</cfScript>
<cfSetting enableCFOutputOnly="no">
Brandon Whitaker
[EMAIL PROTECTED]
-------
"It'll get used by the same people using Opera. People dressed in black
wearing berets."
- Dave Watts, on Mozilla
"It makes you feel so welcome to have a greeter like Papa Dave at the door.
Kind of like what Wal-Mart wishes it could do."
- John Allred, on Dave Watts
"The net interprets censorship as damage and routes around it."
- John Gilmore
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
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.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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.