php-general Digest 16 Apr 2010 09:38:25 -0000 Issue 6695
Topics (messages 304122 through 304128):
Re: Zip Search
304122 by: Nathan Nobbe
304123 by: Jason Pruim
Re: Basic switch statement
304124 by: Jason Pruim
304125 by: Jason Pruim
304126 by: Adam Richardson
304128 by: Jan G.B.
Re: class attributes and __construct
304127 by: Larry Garfield
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On Thu, Apr 15, 2010 at 1:51 PM, Tommy Pham <tommy...@gmail.com> wrote:
> > -----Original Message-----
> > From: Nathan Nobbe [mailto:quickshif...@gmail.com]
> > Sent: Thursday, April 15, 2010 12:41 PM
> > To: Jack
> > Cc: php-gene...@lists.php.net
> > Subject: Re: [PHP] Zip Search
> >
> > On Thu, Apr 15, 2010 at 1:21 PM, Jack <dewebd...@gmail.com> wrote:
> >
> > > Hello All,
> > >
> > > Can anyone recommend a good open source zip code search application
> > and
> > > database?
> > >
> >
> > depends on what you want, u.s., canada & mexico are pretty easy to find
> > but
> > for other non domestic countries if you find something good feel free
> > to
> > share :)
> >
> > for a nice freebie that works on u.s. locations, snag the geoip
> > extension
> > from pecl -
> >
> > http://php.net/manual/en/book.geoip.php
> >
> > -nathan
>
> IIRC, geoip is lookup based on host name or IP address for country, region,
> city, etc... similar to whois for DNS. I think the OP wants to look
> geographic information, such as city, county, state/province, etc..., based
> on a given zip code like 92723.
>
ahh, perhaps a hasty reply on my part - heres a nice freebie mentioned by
geoip -
http://geocoder.ibegin.com/downloads.php
-nathan
--- End Message ---
--- Begin Message ---
On Apr 15, 2010, at 3:21 PM, Jack wrote:
Hello All,
Can anyone recommend a good open source zip code search application
and
database?
If it's us zip's you want... I'd go straight to the source...
http://www.usps.com/zip4/welcome.htm?from=home_header&page=findazipcode
The post office also does have API's for hooking into it if you can
handle the restrictions since they are the government :)
--- End Message ---
--- Begin Message ---
On Apr 15, 2010, at 8:55 AM, tedd wrote:
At 4:13 PM -0400 4/14/10, Al wrote:
Incidentally, about formatting scripts, one of the reasons I like
phpEdit is that it has a terrific code beautifier. You can set it
for phpDoc or Pear rendering. And, it auto indents, etc. as you
enter stuff.
Al...........
Unfortunately, there is no phpEdit version for the Mac.
Currently, I use GoLive (without all the WYSIWYG bloatware), but it
limitations are showing. I like Eclipse, but the learning curve is
high and has more features than I need.
Hey tedd
I just recently started using netbeans and it looks like it may fit
the bill... it's simple enough to understand but can be extended if
you want to. It also runs better on my Mac then Eclipse ever did. Just
something that might be worth checking out :)
--- End Message ---
--- Begin Message ---
On Apr 15, 2010, at 9:24 AM, Ashley Sheridan wrote:
On Thu, 2010-04-15 at 08:55 -0400, tedd wrote:
Have you tried Coder on the Mac? Most developers I know who use Macs
(it's not the oxymoron it sounds! :p )
Most Mac people would say the morons use Windows ;) But that's
another story for another list! :)
--- End Message ---
--- Begin Message ---
On Thu, Apr 15, 2010 at 5:55 PM, Jason Pruim <li...@pruimphotography.com>wrote:
>
> On Apr 15, 2010, at 8:55 AM, tedd wrote:
>
> At 4:13 PM -0400 4/14/10, Al wrote:
>>
>>> Incidentally, about formatting scripts, one of the reasons I like phpEdit
>>> is that it has a terrific code beautifier. You can set it for phpDoc or
>>> Pear rendering. And, it auto indents, etc. as you enter stuff.
>>>
>>> Al...........
>>>
>>
>> Unfortunately, there is no phpEdit version for the Mac.
>>
>> Currently, I use GoLive (without all the WYSIWYG bloatware), but it
>> limitations are showing. I like Eclipse, but the learning curve is high and
>> has more features than I need.
>>
>
>
> Hey tedd
>
> I just recently started using netbeans and it looks like it may fit the
> bill... it's simple enough to understand but can be extended if you want to.
> It also runs better on my Mac then Eclipse ever did. Just something that
> might be worth checking out :)
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
+1 Netbeans
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
--- End Message ---
--- Begin Message ---
2010/4/16 Adam Richardson <simples...@gmail.com>:
> On Thu, Apr 15, 2010 at 5:55 PM, Jason Pruim
> <li...@pruimphotography.com>wrote:
>
>>
>> On Apr 15, 2010, at 8:55 AM, tedd wrote:
>>
>> At 4:13 PM -0400 4/14/10, Al wrote:
>>>
>>>> Incidentally, about formatting scripts, one of the reasons I like phpEdit
>>>> is that it has a terrific code beautifier. You can set it for phpDoc or
>>>> Pear rendering. And, it auto indents, etc. as you enter stuff.
>>>>
>>>> Al...........
>>>>
>>>
>>> Unfortunately, there is no phpEdit version for the Mac.
>>>
>>> Currently, I use GoLive (without all the WYSIWYG bloatware), but it
>>> limitations are showing. I like Eclipse, but the learning curve is high and
>>> has more features than I need.
>>>
>>
>>
>> Hey tedd
>>
>> I just recently started using netbeans and it looks like it may fit the
>> bill... it's simple enough to understand but can be extended if you want to.
>> It also runs better on my Mac then Eclipse ever did. Just something that
>> might be worth checking out :)
>>
>>
>>
> +1 Netbeans
>
+3 Netbeans
Because
+ it's able to manage huge projects and huge files,
+ has the best code completion and
+ I'm not missing any features but one. ;-)
It also runs great on linux. IMHO it beats the Zend IDE, Eclipse as
well as Komodo Edit /ide.
Regards
--- End Message ---
--- Begin Message ---
On Thursday 15 April 2010 08:37:40 am Ashley Sheridan wrote:
> I know I could move it to __construct and give it a default value in the
> arguments list, but that brings it's own problems. What if the argument
> list grows too big, and which attribute would be deemed more important
> than another that you might want to override it without specifying every
> other? Is there a rule of thumb as to what belongs in __construct and
> what does not?
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
I tend to favor setting the default with the property itself rather than in
the constructor, even if I expect the constructor to specify it. I really
really hate having undefined variables. :-) So even if, for instance, I'm
going to pass in a db connection object in the constructor I will define it in
the class and set it to NULL rather than not setting to anything.
OK, I'm a little OCD, but it works. :-)
--Larry Garfield
--- End Message ---