Re: PHP Postgre-MySql call redirector - Mailing list pgsql-general

From Robby Russell
Subject Re: PHP Postgre-MySql call redirector
Date
Msg-id 1092597274.8342.11.camel@vacant
Whole thread Raw
In response to PHP Postgre-MySql call redirector  (brami@gmx.ch (Brandon))
List 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@planetargon.com
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/


Attachment

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: (libpq) listen/notify messages are converted to lowercase and/or are case insensitive
Next
From: CSN
Date:
Subject: Re: idle processes