On Thu, 2004-08-12 at 01:09, Brandon wrote:[color=blue]
> 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[/color]
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
****************************************/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQBBH7Ya0QaQZBaqXgwRAhWuAKDaUuxfydVH3DcVuUwr2W sdR5BiPgCeJ2PY
1M4qO7OGvuNYSL+jRerBLC4=
=0WjS
-----END PGP SIGNATURE-----