PHP as PL

Started by Rod Kabout 23 years ago8 messagesgeneral
Jump to latest
#1Rod K
rod@23net.net

Does anyone know of an individual/group/whatever working on a project to
allow PHP to be used as a PL for Postgres?

Thanks,
Rod

#2Joe Conway
mail@joeconway.com
In reply to: Rod K (#1)
Re: PHP as PL

Rod Kreisler wrote:

Does anyone know of an individual/group/whatever working on a project to
allow PHP to be used as a PL for Postgres?

Thanks,
Rod

I've discussed it with Christopher Kings-Lynne a little while back. I
don't think it would be too terribly hard to do, using the new php-embed
option, and PL/R as starting point -- but I probably won't have the time
to get started until after the Postgres 7.4 beta freeze.

Joe

#3Bruce Momjian
bruce@momjian.us
In reply to: Rod K (#1)
Re: PHP as PL

Rod Kreisler wrote:

Does anyone know of an individual/group/whatever working on a project to
allow PHP to be used as a PL for Postgres?

No, never heard of one, but I think MySQL may have one.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#4Arjen van der Meijden
acm@tweakers.net
In reply to: Bruce Momjian (#3)
Re: PHP as PL

Bruce Momjian wrote:

Rod Kreisler wrote:

Does anyone know of an individual/group/whatever working on

a project

to
allow PHP to be used as a PL for Postgres?

No, never heard of one, but I think MySQL may have one.

MySQL a PL ??
I don't think so, last time I looked it wasn't possible and it wouldn't
be untill the 5.x releases afaik.

Regards,

Arjen

#5Ian Lawrence Barwick
barwick@gmail.com
In reply to: Arjen van der Meijden (#4)
Re: PHP as PL

On Sunday 06 April 2003 11:13, Arjen van der Meijden wrote:

Bruce Momjian wrote:

Rod Kreisler wrote:

Does anyone know of an individual/group/whatever working on

a project

to
allow PHP to be used as a PL for Postgres?

No, never heard of one, but I think MySQL may have one.

MySQL a PL ??
I don't think so, last time I looked it wasn't possible and it wouldn't
be untill the 5.x releases afaik.

Don't know about PHP but Perl as PL for MySQL pops up from time
to time:
http://www.mysql.com/portal/sites/item-68.html
http://slashdot.org/article.pl?sid=01/08/24/1253228&mode=thread

Doesn't seem to have made the big time yet though ;-).

Ian Barwick
barwick@gmx.net

#6Jan Wieck
JanWieck@Yahoo.com
In reply to: Bruce Momjian (#3)
Re: PHP as PL

Bruce Momjian wrote:

Rod Kreisler wrote:

Does anyone know of an individual/group/whatever working on a project to
allow PHP to be used as a PL for Postgres?

No, never heard of one, but I think MySQL may have one.

What? I heard their plan was to use perl for user defined functions a
while back. At that time of course without server side data access
inside the same transaction, but things might have changed.

Anyhow, I think PHP as a procedural language inside PostgreSQL would
make a lot of sense. It seems natural to use the same programming
language when trying to split up the business logic between the middle
tear layer (Apache/PHP) and the database.

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #

#7Rod K
rod@23net.net
In reply to: Jan Wieck (#6)
Re: PHP as PL

At 01:15 PM 4/6/2003 -0400, Jan Wieck wrote:

Bruce Momjian wrote:

Rod Kreisler wrote:

Does anyone know of an individual/group/whatever working on a project to
allow PHP to be used as a PL for Postgres?

No, never heard of one, but I think MySQL may have one.

What? I heard their plan was to use perl for user defined functions a
while back. At that time of course without server side data access
inside the same transaction, but things might have changed.

Anyhow, I think PHP as a procedural language inside PostgreSQL would
make a lot of sense. It seems natural to use the same programming
language when trying to split up the business logic between the middle
tear layer (Apache/PHP) and the database.

Jan

When the first Zend Engine was released, Zeev (or Andi) mentioned that they
were is discussion with MySQL AB to have PHP as a PL for MySQL. Since
then, not a word. MySQL only mentions that they plan to have PL support in
v5 but no mention of what language that will use....

#8Bruce Momjian
bruce@momjian.us
In reply to: Rod K (#7)
Re: PHP as PL

Rod Kreisler wrote:

At 01:15 PM 4/6/2003 -0400, Jan Wieck wrote:

Bruce Momjian wrote:

Rod Kreisler wrote:

Does anyone know of an individual/group/whatever working on a project to
allow PHP to be used as a PL for Postgres?

No, never heard of one, but I think MySQL may have one.

What? I heard their plan was to use perl for user defined functions a
while back. At that time of course without server side data access
inside the same transaction, but things might have changed.

Anyhow, I think PHP as a procedural language inside PostgreSQL would
make a lot of sense. It seems natural to use the same programming
language when trying to split up the business logic between the middle
tear layer (Apache/PHP) and the database.

Jan

When the first Zend Engine was released, Zeev (or Andi) mentioned that they
were is discussion with MySQL AB to have PHP as a PL for MySQL. Since
then, not a word. MySQL only mentions that they plan to have PL support in
v5 but no mention of what language that will use....

Yes, that is what I remember.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073