[unixODBC-support] php+odbc

Vinicius Dittgen vpd at jppa.com.br
Wed Nov 24 19:50:25 GMT 2004


First i install and compile the unixODBC driver with php, to test i made
this:
 
 
In odbcinst.ini file I wrote:
 
[PostgreSQL]
Driver    = /usr/lib/libodbcpsql.so
Setup   = /usr/lib/libodbcpsqlS.so
FileUsage = 1
 
 
 
In odbc.ini file:
 
[PostgreSQL]
Driver    = PostgreSQL
Trace    = yes
TraceFile = sql.log         
Database = nick
Servername = localhost
UserName =
Password =
Port = 5432
Protocol = 6.4
 
 
My php:
 
$con = odbc_connect("paradox","","") or die("Erro na conexão com o
Database");
 
and i have this error:  
Warning: odbc_connect(): SQL error: [unixODBC][Driver Manager]Can't open
lib '/usr/lib/libodbcpsql.so' : /usr/lib/libodbcpsql.so: cannot open
shared object file: Arquivo ou diretório não encontrado, SQL state 01000
in SQLConnect in /home/httpd/html/teste/odbc.php on line 3
Erro na conexão com o Database
 
 
Someone have some help??
 
 
 
Vinicius Dittgen 
Informática
JPPA Gerenciamento e Projetos S/S Ltda
+55 51 2123-9000
HYPERLINK "http://www.jppa.com.br/"www.jppa.com.br
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.2 - Release Date: 24/11/04
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20041124/6ab4c575/attachment.html>


More information about the unixODBC-support mailing list