Re: PHP Postgre-MySql call redirector

From: Robby Russell <robby(at)planetargon(dot)com>
To: Brandon <brami(at)gmx(dot)ch>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PHP Postgre-MySql call redirector
Date: 2004-08-15 19:14:34
Message-ID: 1092597274.8342.11.camel@vacant
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2004-08-12 at 01:09, Brandon wrote:
> Is there a call redirector available that redirects the calls to the
> PHP MySql API (mysql_connect etc.) to a Postgre database? This would
> be very usefull since a lot of PHP Scripts are coded for MySQL. I
> think for most PHP scripts this would work out since the SQL syntax
> from PostgreSQL and MySQL are very similar.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

You could remove the mysql libs and add create functions for this.

example

function mysql_connect($x)
{
pg_connect($x);
}

However, I would look into PEAR DB.

-Robby

--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby(at)planetargon(dot)com
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message CSN 2004-08-15 19:15:04 Re: idle processes
Previous Message Tom Lane 2004-08-15 19:05:26 Re: (libpq) listen/notify messages are converted to lowercase and/or are case insensitive