From: | "Leif B(dot) Kristensen" <leif(at)solumslekt(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Wordpress & PostgreSQL ... |
Date: | 2006-10-30 12:25:02 |
Message-ID: | 200610301325.02530.leif@solumslekt.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Monday 30. October 2006 10:31, Ashley Moran wrote:
>On 30 Oct 2006, at 06:15, Nikolay Samokhvalov wrote:
>> Could you please give some example of such "inspired by MySQL
>> features of PHP design"?
>
>Sorry... perhaps I should have wrapped my comment in <sarcasm
>bitterness="10"/> </sarcarsm> to make it more clear what I meant. I
>didn't mean that MySQL literally inspired features of PHP (maybe it
>did?) - just that the <sarcasm bitterness="10"/>clean, elegant nature
>of PHP seems taken from MySQL</sarcarsm>.
I don't find it particularly hard to write clean code in PHP. But then,
most of my PHP codebase involves two inbuilt functions: pg_query() and
echo. The more PHP code I write, the more do I find that almost all of
it can be reduced to those two commands. But of course, I write a lot
of wrappers and abstractions on top of it.
I do most of my internal database logic as views and functions in
PostgreSQL, which can be easily interfaced with some very innocent
looking queries from PHP.
Writing PHP to interface with (at least pre-5.0) MySQL is quite another
matter, because you have to incorporate so much of the db logic in PHP.
I won't touch that combination again if it can be helped.
--
Leif Biberg Kristensen | Registered Linux User #338009
http://solumslekt.org/ | Cruising with Gentoo/KDE
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Kelly | 2006-10-30 12:34:34 | access and security |
Previous Message | Albe Laurenz | 2006-10-30 09:34:08 | Re: postgresql books and convertion utilities |