Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-17 Thread John Smith
On 6/17/07, Tom Allison <[EMAIL PROTECTED]> wrote: Perl has a high entry barrier. yeah right ;). perl is time-tested better for sys admin than the web. and we all know how sys admins want to use the same code for the web but it doesn't cut right. *if anything* php is 'enhanced perl' for the w

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-17 Thread Tom Allison
On Jun 16, 2007, at 7:51 PM, Leif B. Kristensen wrote: On Saturday 16. June 2007 23:34, Erick Papadakis wrote: How much value you derive from a language depends on how you use it. After playing for years with Perl, and now with Python and Ruby, I think PHP is still where it's at. I too have

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-17 Thread Tom Allison
On Jun 16, 2007, at 4:12 PM, Uwe C. Schroeder wrote: On Saturday 16 June 2007, John Smith wrote: guys, love both tools but php @ 2.5 *billion* google results is far more popular than postgresql @ 25 million google results. *if* somebody's gotto adapt it's not php. php does what it does best

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-17 Thread Tom Allison
On Jun 16, 2007, at 3:38 PM, John Smith wrote: guys, love both tools but php @ 2.5 *billion* google results is far more popular than postgresql @ 25 million google results. *if* somebody's gotto adapt it's not php. php does what it does best in a way that stuffy academics don't get. I would

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Andrej Ricnik-Bay
On 6/17/07, Ron Johnson <[EMAIL PROTECTED]> wrote: > That's like saying that BSD or Linux should be more like > Windows because there's more Windows than Linux stuff > to be found on the web You've not used KDE lately, have you? :) That'll be right. I use fluxbox. :} And while *ix migh

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Leif B. Kristensen
On Saturday 16. June 2007 23:34, Erick Papadakis wrote: >How much value you derive from a language >depends on how you use it. After playing for years with Perl, and now >with Python and Ruby, I think PHP is still where it's at. I too have played around with Perl and Python, and use both of them f

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Erick Papadakis
On 6/17/07, PFC <[EMAIL PROTECTED]> wrote: I either use pg_query_params() which automagically handles all quoting, or an ORM which does the same. There is no reason to include strings in SQL statements except laziness. MySQL does not have a mysql_query_params() for PHP, so you have to write on

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Erick Papadakis
On 6/17/07, Raymond O'Donnell <[EMAIL PROTECTED]> wrote: Having said that, the main gripes I would have with PHP are (i) variables aren't strongly typed, which can bite you unless you're careful, and (ii) you don't have to declare variables before using them, which can also cause trouble - in VBS

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Ron Johnson
On 06/16/07 15:34, John Smith wrote: On 6/16/07, Uwe C. Schroeder <[EMAIL PROTECTED]> wrote: Mhhh - what does PHP have to do with Postgresql? Lots of pages just end in .php, which is why the google results are so high - guess what, the tool "html" hits 3.2 billion :-) show me a database that do

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread PFC
I wouldn't call Python *strongly* typed, but I do know what you mean. I think. It is strongly typed (string + int = error), just not statically typed (but you saw what I mean ;) "PHP: very loosely typed, does whatever it wants" yeah php got a life of its own! sure be a lazy programmer

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread John Smith
On 6/16/07, Uwe C. Schroeder <[EMAIL PROTECTED]> wrote: Mhhh - what does PHP have to do with Postgresql? Lots of pages just end in .php, which is why the google results are so high - guess what, the tool "html" hits 3.2 billion :-) show me a database that doesn't respect html and i'll show you o

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread John Smith
and that's not how it is?? ever tried ubuntu and saw how it looks a bit like windows thesedays?? good luck but try getting funding/acceptance with this line "i wanna design a new tool but i don't want features from that other tool that work in the market" let's stop blaming php if you don't know

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Ron Johnson
On 06/16/07 15:04, Andrej Ricnik-Bay wrote: On 6/17/07, John Smith <[EMAIL PROTECTED]> wrote: guys, love both tools but php @ 2.5 *billion* google results is far more popular than postgresql @ 25 million google results. *if* somebody's gotto adapt it's not php. php does what it does best in a wa

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Uwe C. Schroeder
On Saturday 16 June 2007, John Smith wrote: > guys, > love both tools but php @ 2.5 *billion* google results is far more > popular than postgresql @ 25 million google results. *if* somebody's > gotto adapt it's not php. php does what it does best in a way that > stuffy academics don't get. Mhhh -

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Andrej Ricnik-Bay
On 6/17/07, John Smith <[EMAIL PROTECTED]> wrote: guys, love both tools but php @ 2.5 *billion* google results is far more popular than postgresql @ 25 million google results. *if* somebody's gotto adapt it's not php. php does what it does best in a way that stuffy academics don't get. That's li

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Ron Johnson
On 06/16/07 11:24, PFC wrote: [snip] It's a matter of mindset. PHP and Postgres have really opposite mindsets. Python is a lot more similar to Postgres, for instance : - Postgres, Python : strongly typed, throws an error rather than doing funny stuff with your data, your code does wh

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread John Smith
guys, love both tools but php @ 2.5 *billion* google results is far more popular than postgresql @ 25 million google results. *if* somebody's gotto adapt it's not php. php does what it does best in a way that stuffy academics don't get. On 6/16/07, PFC <[EMAIL PROTECTED]> wrote: "PHP: very loose

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Joshua D. Drake
Raymond O'Donnell wrote: On 16/06/2007 16:46, PFC wrote: Also note that PHP, being PHP, sucks, and thusly, will not reconnect persistent connections when they fail. You have to kick it a bit. I've seen similar negative comments before on this list about PHP, and I'm curious to know what

Re: [GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread PFC
I've seen similar negative comments before on this list about PHP, and I'm curious to know what informs them. Maybe the fact that, when I coded a database object/form library, it took me LONGER to ensure that empty strings / NULLs / zero valued floats and integers / etc were handled corr

[GENERAL] PHP sucks!! - was: persistent db connections in PHP

2007-06-16 Thread Raymond O'Donnell
On 16/06/2007 16:46, PFC wrote: Also note that PHP, being PHP, sucks, and thusly, will not reconnect persistent connections when they fail. You have to kick it a bit. I've seen similar negative comments before on this list about PHP, and I'm curious to know what informs them. I use PHP