Re: Re: perl vs php for postgresql

From: "John" <vze23skh(at)verizon(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: perl vs php for postgresql
Date: 2001-05-23 01:38:11
Message-ID: 7wEO6.292$xM2.284294@typhoon2.ba-dsg.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jason,

Thank you for the insightful post. I did make a typo when I typed DBM. I
guess I was frazzled and really meant DBD. Since I eventuall want to open a
socket and send some data to/from the database, you have made me realize (or
remember) why I was using perl in the first place. Thanks.

-John

"Jason Earl" <jdearl(at)yahoo(dot)com> wrote in message
news:20010522194855(dot)88731(dot)qmail(at)web10008(dot)mail(dot)yahoo(dot)com(dot)(dot)(dot)
> The types of problems that John is having are quite
> likely to persist with PHP, as his problems aren't so
> much in programming with Perl, as it seems to be with
> compiling the requisite Perl modules. I haven't used
> PHP since PHP3, but if I remember correctly it was a
> lot more difficult to build a version of Apache that
> had a PostgreSQL compatible PHP module than it was to
> build DBD:Pg.
>
> John, if you really are trying to build the Perl
> module for PostgreSQL you need to get "DBD::Pg" (not
> DBM::Pg). You will also need the DBI module. Both of
> these can be found on CPAN, and the instructions are
> pretty complete (feel free to email me with specific
> questions).
>
> I would also second Craig's endorsement of PHP. It is
> exceptionally easy to use, and it performs well
> without having to learn to use mod_perl (I prefer Zope
> and Python, but that's another story). The cool thing
> about Perl, on the other hand, is that you can use it
> for your system adminstration tasks as well (yes, PHP
> can be used from the command line, but there is no
> better glue language than Perl). I find myself using
> it very frequently for tasks such as importing data
> into PostgreSQL and exporting data from PostgreSQL for
> use somewhere else.
>
> --- Craig Orsinger
> <cjorsinger(at)m5(dot)earthlink_net(dot)invalid> wrote:
> > In article
> > <uskO6(dot)1504$5G1(dot)464213(at)typhoon2(dot)ba-dsg(dot)net>, "John"
> > <vze23skh(at)verizon(dot)net> wrote:
> >
> > > It seems that I having problems locating the
> > DBM:Pg module. I even
> > > followed the instructions on compiling postgresql
> > to support it. My
> > > perl scripts don't seem to know about a Pg module
> > and I have not had any
> > > luck finding answers. Is is easier to use php with
> > postgresql? Will I
> > > have the same kinds of problems? Thanks for any
> > advice.
> >
> > I can't comment on the relative ease, but PHP is
> > easy to use, at
> > least for small projects like mine. I don't mean to
> > start a flame war
> > here, but Perl's syntax alwasy seemed a little
> > obscure to me. I'm used
> > to C and C-inspired shells. Not knowing anything
> > about PHP, it took
> > me about an hour to build a page that would display
> > an HTML table
> > from select, with color-coded rows. Not too bad for
> > an occasional
> > programmer.
> >
> > ---------------------------(end of
> > broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://www.postgresql.org/search.mpl
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2001-05-23 01:59:13 Re: Estimating costs (was Functional Indices)
Previous Message Tatsuo Ishii 2001-05-23 00:59:19 Re: Postgresql - multibyte