Hi, I have a FreeBSD 5.3 at my server. I just set up: 1. Mysql41-server (default install) 2. PHP5 (+ Apache2) 3. samba3...... My problem is that PHP5 doesn?t call unixODBC, as PHP4 does! What or where can I configure PHP5 to read Mysql through Apache2? I already set up unixODBC (/usr/ports/databases/unixODBC/make && make install), but just that! Will it work? Do I have to set up anything else?, for example odbc.ini (empty) odbcinst.ini (empty)???? Thanks for any help. Pedro H. Brasil!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 27 Jan 2005 19:37:59 -0200, "STAMPA 2" <stampa2@cultura.com.br> wrote:> What or where can I configure PHP5 to read Mysql through Apache2?PHP doesn't need ODBC to talk to a MySQL server. Just use the MySQL functions included in PHP: http://br.php.net/manual/pt_BR/ref.mysql.php - -- G. Stewart - gstewart@bonivet.net Health nuts are going to feel stupid someday, lying in hospitals dying of nothing. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB+WJoK5oiGLo9AcYRAopkAJ4t0TMgZd1uEzxJ4uY6BU1i1LVO6ACeJGIW 522VIXaILuG8J8iYkOFCfiI=vEL8 -----END PGP SIGNATURE-----
On Thu, 27 Jan 2005 19:37:59 -0200, STAMPA 2 <stampa2@cultura.com.br> wrote:> Hi, > > I have a FreeBSD 5.3 at my server. I just set up: > > 1. Mysql41-server (default install) > 2. PHP5 (+ Apache2) > 3. samba3...... > > My problem is that PHP5 doesn?t call unixODBC, as PHP4 does! > > What or where can I configure PHP5 to read Mysql through Apache2? > > I already set up unixODBC (/usr/ports/databases/unixODBC/make && make install), but just that! > Will it work? Do I have to set up anything else?, for example odbc.ini (empty) odbcinst.ini (empty)???? >Install the databases/php5-mysql and/or databases/php5-odbc ports. You can use the lang/php5-extensions port to select the appropriate php5-* ports you need. Scot