Re: PHP Postgre-MySql call redirector

Поиск
Список
Период
Сортировка
От Robby Russell
Тема Re: PHP Postgre-MySql call redirector
Дата
Msg-id 1092597274.8342.11.camel@vacant
обсуждение исходный текст
Ответ на PHP Postgre-MySql call redirector  (brami@gmx.ch (Brandon))
Список 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
****************************************/


Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: (libpq) listen/notify messages are converted to lowercase and/or are case insensitive
Следующее
От: CSN
Дата:
Сообщение: Re: idle processes