Re: Blocking off access
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 63202
interpreted = N
texte = Hi FrankThe conversion worls perfectly, I am for some reason not getting a resultwith the search[!]Search code[/!][Searchdb=ip-to-country.db&ipFromtype=num&ipTotype=num&geipFromdatarq=[ipnumber]&leipTodatarq=[ipnumber]&max=1][Founditems]{Insert whatever code you need to do what you want to do with thenationality data}[/Founditems][/Search] ipFromtype ipTotype Ccode Cabr countrycode 982745088 982761471 AF AFG AFGHANISTAN 1049547296 1049547327 AF AFG AFGHANISTANThis is how the datebase is but nothing is returnedAny ideas?THanksPaul----- Original Message ----- From: "Frank Nordberg"
To: "WebDNA Talk" Sent: Sunday, October 09, 2005 8:56 AMSubject: Re: Blocking off access> paul wrote:>> > The other database is in thisformat> ...> > Would need to find a way to convert dotted IPs to this>> That was the first part of the code I posted earlier:>> [TEXT]ipnumber=[MATH][LISTWORDS> words=[IPADDRESS]&delimiters=.]([WORD][SHOWIF> [INDEX]<4]*256[/SHOWIF][SHOWIF [INDEX]<3]*256[/SHOWIF][SHOWIF> [INDEX]<2]*256[/SHOWIF])+[/LISTWORDS]0[/MATH][/TEXT]>> This converts the dotted ip address collected by WebDNA to a pure> numeric value in the right format and stores it as a variable named> [ipnumber]>> I'm sure there are more elegant solutions, but this one'll work fine.>> Frank>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hi FrankThe conversion worls perfectly, I am for some reason not getting a resultwith the search[!]Search code[/!][Searchdb=ip-to-country.db&ipFromtype=num&ipTotype=num&geipFromdatarq=[ipnumber]&leipTodatarq=[ipnumber]&max=1][founditems]{Insert whatever code you need to do what you want to do with thenationality data}[/Founditems][/Search] ipFromtype ipTotype Ccode Cabr countrycode 982745088 982761471 AF AFG AFGHANISTAN 1049547296 1049547327 AF AFG AFGHANISTANThis is how the datebase is but nothing is returnedAny ideas?THanksPaul----- Original Message ----- From: "Frank Nordberg" To: "WebDNA Talk" Sent: Sunday, October 09, 2005 8:56 AMSubject: Re: Blocking off access> paul wrote:>> > The other database is in thisformat> ...> > Would need to find a way to convert dotted IPs to this>> That was the first part of the code I posted earlier:>> [text]ipnumber=[math][LISTWORDS> words=[ipaddress]&delimiters=.]([WORD][SHOWIF> [INDEX]<4]*256[/SHOWIF][SHOWIF [INDEX]<3]*256[/SHOWIF][SHOWIF> [INDEX]<2]*256[/SHOWIF])+[/LISTWORDS]0[/MATH][/TEXT]>> This converts the dotted ip address collected by WebDNA to a pure> numeric value in the right format and stores it as a variable named> [ipnumber]>> I'm sure there are more elegant solutions, but this one'll work fine.>> Frank>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"paul"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
OS X Line Endings HELL [solved] (2003)
emailer w/F2 (1997)
Apache 2.0 question (AddModule mod_webcatalog.cpp) (2008)
Looking for WebSTAR bomb at startup (2000)
Initiating NewCart (1997)
[WebDNA] Search Problem (2011)
Include vs. lookup? (1998)
2 Nt's (1998)
Webstar 1.3.1 PPC (1997)
Help with ShowNext (1998)
taxrate - off by 1 cent (1997)
MacAuthorize order data fields WAS:How To question... (1997)
Re:Copyright ? (1997)
E-mailer error codes (1997)
WebCatalog2 Feature Feedback (1996)
Newbie Tax Question (1997)
PSC recommends what date format yr 2000??? (1997)
Opinion: [input] should be called [output] ... (1997)
WebCat B13 Mac CGI -- Frames question (1997)
Sku numbers (1997)