Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #10691
| From | Twayne <nobody@spamcop.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Zip Codes ctype? Pregmatch? |
| Date | 2013-08-31 20:07 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <kvu0h1$5v8$1@speranza.aioe.org> (permalink) |
| References | <kv08v0$614$1@speranza.aioe.org> <jb-dnQwr1JgOF7zPnZ2dnUVZ_oSdnZ2d@posted.internetamerica> |
On 2013-08-31 2:17 AM, Gordon Burditt wrote: >> I'm attempting to check for US and Canadian zip codes (postal codes). > > For what purpose? The reason I ask is that the type of checking you > do may depend on the reason for the checking. While I certainly appreciate all the data you posted, I'm aware of most of it, not all, and my eventual course, which I'm getting around to now, is to use their API to determine valid codes (or not). My "real" reason? Well, I've accomplished what I've set out to do for now and the next step is using APIs where they exist; supply a zip/postal code and get a response for whether it's valid or not. > ... maybe you need to review what it is you're trying to > accomplish. > My goal is to learn, and what I've learned from tis thread is a great deal about using PHP to handle these matters for postal codes and many other similar formats that have nothing to do with postal codes. I believe I have picked up a good deal of the information/experience I need now, and am better off for it. ... > > The Standard and Unique ZIP codes are valid for most purposes. Agreed. > ... > > A ZIP code may change. I was in 2 zip code splits near Houston, > Texas around Feb. 1976 where the apartment I moved out of and the > house I moved into both changed (5-digit) ZIP codes. 9-digit > codes hadn't been put to use yet. Which is the draw to using their automated lookups to determine the validity or not; it's my current bent. > ... > > On the other hand, if your requirements are to (1) eliminate as > many bad codes as possible, and (2) a database subscription to > issued codes is acceptable, and (3) an occasional rejection of brand > new codes is acceptable, then you want to find an API preferably > maintained by someone else to do the checking for you. They're freely available for the US and Canada; I've used them manually and they accomplish my goals for me. I'm very hungry for information from the learning PHP POV and this has been an excellent thread to that end. One of the better things is having learned ctype_ ... something I've never used successfully before and now find it an easy thing to handle. Again, thanks for all that information; I appreciate a post like this and don't mind saying so. Regards, Twayne` >
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-20 13:27 -0400
Re: Zip Codes ctype? Pregmatch? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2013-08-20 11:59 -0600
Re: Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-20 15:01 -0400
Re: Zip Codes ctype? Pregmatch? Robert Heller <heller@deepsoft.com> - 2013-08-20 13:08 -0500
Re: Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-20 15:03 -0400
Re: Zip Codes ctype? Pregmatch? Robert Heller <heller@deepsoft.com> - 2013-08-20 14:36 -0500
Re: Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-20 20:17 -0400
Re: Zip Codes ctype? Pregmatch? RESOLVED Twayne <nobody@spamcop.net> - 2013-08-20 15:06 -0400
Re: Zip Codes ctype? Pregmatch? RESOLVED Norman Peelman <npeelman@cfl.rr.com> - 2013-08-20 19:53 -0400
Re: Zip Codes ctype? Pregmatch? RESOLVED Twayne <nobody@spamcop.net> - 2013-08-20 20:29 -0400
Re: Zip Codes ctype? Pregmatch? RESOLVED Moon Elf <moonelf@moonelfsystem.net> - 2013-12-16 10:02 +0000
Re: Zip Codes ctype? Pregmatch? RESOLVED Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-12-16 12:27 +0000
Re: Zip Codes ctype? Pregmatch? Norman Peelman <npeelman@cfl.rr.com> - 2013-08-20 19:52 -0400
Re: Zip Codes ctype? Pregmatch? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-08-21 14:53 +0200
Re: Zip Codes ctype? Pregmatch? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-08-21 14:58 +0200
Re: Zip Codes ctype? Pregmatch? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-08-21 15:06 +0200
Re: Zip Codes ctype? Pregmatch? Curtis Dyer <dyer85@gmail.com> - 2013-08-24 10:22 +0000
Re: Zip Codes ctype? Pregmatch? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-08-24 12:52 +0200
Re: Zip Codes ctype? Pregmatch? Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-08-25 14:31 +0000
Re: Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-25 13:21 -0400
Re: Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-25 13:17 -0400
Re: Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-21 19:10 -0400
Re: Zip Codes ctype? Pregmatch? BootNic <bootnic.bounce@gmail.com> - 2013-08-21 22:09 -0400
Re: Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-22 18:22 -0400
Re: Zip Codes ctype? Pregmatch? Jeff North <jnorthau@yahoo.com.au> - 2013-08-21 21:25 +1000
Re: Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-21 18:53 -0400
Re: Zip Codes ctype? Pregmatch? Norman Peelman <npeelman@cfl.rr.com> - 2013-08-21 22:46 -0400
Re: Zip Codes ctype? Pregmatch? gordonb.qnlcm@burditt.org (Gordon Burditt) - 2013-08-31 01:17 -0500
Re: Zip Codes ctype? Pregmatch? Fiver <numeralfive@gmail.com> - 2013-08-31 16:40 +0200
Re: Zip Codes ctype? Pregmatch? Norman Peelman <npeelman@cfl.rr.com> - 2013-08-31 11:56 -0400
Re: Zip Codes ctype? Pregmatch? Welsh Vanner <welshvanners@welsh-vanners.co.uk> - 2013-08-31 20:23 +0100
Re: Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-31 20:21 -0400
Re: Zip Codes ctype? Pregmatch? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2013-08-31 09:56 -0600
Re: Zip Codes ctype? Pregmatch? Twayne <nobody@spamcop.net> - 2013-08-31 20:07 -0400
csiph-web