[PHP-DEV] dbx question - specifying a port for pgsql

2002-09-27 Thread Jeff Van Campen

Hello,

We have been using dbx here at work, and it seems that it could be a very 
useful tool, since we use several DBMSs.

However, on one of our servers, we have to run Postgres on a port other than 
5432.  After reading the documentation and finding nothing there, I took a 
look at the source, and noticed that the port is hardcoded.  I was wondering 
if there are any plans to allow the spefication of a port via the dbx_connect 
funtion.

It looks to me that in dbx_mysql.c, you can use the MySQL 
host:port/host:socket syntax.  Is there any possibility that this syntax or 
a variation of it could be used throughout dbx?  

Thank you,

Jeff Van Campen

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] dbx question - specifying a port for pgsql

2002-09-27 Thread Marc Boeren


Hi,

 However, on one of our servers, we have to run Postgres on a 
 port other than 5432. 

 It looks to me that in dbx_mysql.c, you can use the MySQL 
 host:port/host:socket syntax.  Is there any possibility 
 that this syntax or a variation of it could be used throughout
 dbx?  

You can indeed use the 'host:port' for mysql, as this is an accepted input
for the mysql_connect hostname. However, that syntax would not work for any
of the other databases.

Since the default pgsql portnumber is 5432 and that is the value that is
hardcoded in dbx_pgsql.c, wouldn't it be easier to just remove this part of
the connection-string from the c-file? That makes the patch trivial, while
allowing you to set the portnumber with environment variables (PGPORT=7890).

Since you read the source I assume you can compile it too, so you could
easily test if this works for you (I do not have a running postgresql here,
so testing is difficult), on systems with both a default portnumber and an
alternative portnumber.

Any comments on this solution instead of a host:port syntax?

Cheerio, Marc.

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] dbx

2002-03-07 Thread Hunter, Ray
Title: dbx





Does anyone off hand know if dbx is supported in php version 4.0.6?



Thank you,


Ray Hunter
Firmware Engineer


ENTERASYS NETWORKS


Internal: 53888
External: 801 887-9888
Email:  [EMAIL PROTECTED]
www:  www.enterasys.com







Re: [PHP-DEV] dbx

2002-03-07 Thread Sander Roobol

On 2002.03.07 18:48 Hunter, Ray wrote:
 Does anyone off hand know if dbx is supported in php version 4.0.6?

Yes it is!

Sander

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] dbx

2002-03-07 Thread Marc Boeren


 Does anyone off hand know if dbx is supported in php version 4.0.6?

It is, but Frontbase (since 4.1.0) or Sybase-CT (cvs only until the next
release) support were not available back then.

Cheerio, Marc.


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] dbx module (database abstraction) available

2001-03-13 Thread Marc Boeren


Hi!

The dbx module (database abstraction module in C, supports ODBC and MySQL
(for now :-)) is available at http://www.guidance.nl/php/dbx/
Source is available in zip and tar.gz formats.
Documentation (both user docs and docs about extending the database support)
is also available is zip and tar.gz, as well as online in html-format.
I've also put up a precompiled Win32 dll, but I don't think that will find
much use because the module API number of the dll and php must match...

If you have the time and/or inclination to give it a try, let me know what
you think and how it can be improved.

Enjoy!

Cheerio, Marc.

(BTW, I only subscribe to the php-dev list, not the php-db list, so please
mail me directly...)


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]