Re: PHP sucks!! - was: persistent db connections in PHP

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: rod(at)iol(dot)ie
Cc: PFC <lists(at)peufeu(dot)com>, lawpoop(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: PHP sucks!! - was: persistent db connections in PHP
Date: 2007-06-16 17:07:39
Message-ID: 467418DB.8070904@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 informs them.

This is likely to be a long thread, but I will break it down very simply.

PHP works.

PHP does not work the way "real" programmers want it to.

Everything else comes down to semantic arguments of what is correct and
what isn't. Most of the arguments will be correct in that:

PHP as a programming language is horrible
PHP does things that any sane programmer would run from

But go back to my first point:

PHP works.

PHP is easy, I say this as a guy that will code Python over PHP any day
of the week but, PHP works.

Sincerely,

Joshua D. Drake

>
> I use PHP quite a bit, and though I wouldn't claim to be any sort of an
> expert, I like it a lot: IMHO it's powerful, fast and easy to use. Mind
> you, I came to PHP from an ASP/VBscript background, so anything would
> have been an improvement.
>
> 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 VBScript you have "option expicit"
> which forces you to declare your variables; I'd like to see something
> similar in PHP.
>
> Apologies if this is off-topic for this list, but I'm curious as to why
> others reckon that PHP sucks.....
>
> Ray.
>
> ---------------------------------------------------------------
> Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
> rod(at)iol(dot)ie
> ---------------------------------------------------------------
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org/
>

--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-06-16 17:24:05 Re: about cursors
Previous Message Ottavio Campana 2007-06-16 16:58:27 about cursors