Re: [PHP-DB] Connecting to database fails

2016-08-15 Thread Rich Shepard
On Sat, 13 Aug 2016, Lester Caine wrote: Do you actually have the postgresql PHP driver installed. Database drivers are not installed by default as you only really need the ones you are actually using. Should be installed: /usr/lib/php/extensions/pgsql.so

Re: [PHP-DB] Connecting to database fails

2016-08-13 Thread Lester Caine
On 14/08/16 00:00, Rich Shepard wrote: > Ah, yes. Pat likes MySQL/MariaDB so he does not build php to support > postgres. I'll rebuild it and that should solve the problem. I've been with Firebird/Interbase since before PHP existed ;) -- Lester Caine - G8HFL -

Re: [PHP-DB] Connecting to database fails

2016-08-13 Thread Rich Shepard
On Sat, 13 Aug 2016, Rich Shepard wrote: Not installed. I'll search the Web to learn how to install it. Ah, yes. Pat likes MySQL/MariaDB so he does not build php to support postgres. I'll rebuild it and that should solve the problem. Thanks again, Rich -- PHP Database Mailing List

Re: [PHP-DB] Connecting to database fails

2016-08-13 Thread Rich Shepard
On Sat, 13 Aug 2016, Lester Caine wrote: Do you actually have the postgresql PHP driver installed. Database drivers are not installed by default as you only really need the ones you are actually using. Lester, Well, that would make a difference. I did not know how to check for this.

Re: [PHP-DB] Connecting to database fails

2016-08-13 Thread Lester Caine
On 13/08/16 21:23, Rich Shepard wrote: > With no other PHP applications installed here I have no experience in > determining where this stoppage occurs. Pointers on how to isolate the > source of the problem, than how to fix it, are needed. Do you actually have the postgresql PHP driver

[PHP-DB] Connecting to database fails

2016-08-13 Thread Rich Shepard
I'm trying to install and run an abandoned PHP-based application (xrms found on sourceforge.net last updated a decade ago) on Slackware-14.1 running httpd-2.4.16, php-5.6.24, adodb-5.14, and postgresql-9.3.4. When I try to load the install.php script in firefox-45.3 I see this error: Syntax

Re: [PHP-DB] connecting to database..?

2001-05-21 Thread rice
Thank you very much for your help!!! It works now!!! There are two methods to fix the error mentioned by Derick. 1. Supply the socket path to mysql_connect() furnction. e.g. $link = mysql_connect(localhost:3306:/var/lib/mysql/mysql.sock, user, password); where 3306 is default port and

Re: [PHP-DB] connecting to database..?

2001-05-20 Thread rice
I have the same problem as you when using apache1.3.19, php4.0.5 and mysql3.23.38 and get the same warning message. I've spent many time to compile the system again but failed. So I forgive to use the newest version and use apache1.3.17, php4.0.4 and mysql3.23.38. It works now! Hope someone can