RES: [unixODBC-support] php+odbc

Vinicius Dittgen vpd at jppa.com.br
Wed Nov 24 21:13:31 GMT 2004


My correct php was:
$con = odbc_connect("PostgreSQL","","") or die("Erro na conexão com o
Database");
           
and the 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
 
 
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
-----Mensagem original-----
De: unixodbc-support-bounces at easysoft.com
[mailto:unixodbc-support-bounces at easysoft.com] Em nome de Vinicius
Dittgen
Enviada em: quarta-feira, 24 de novembro de 2004 17:50
Para: unixodbc-support at easysoft.com
Assunto: [unixODBC-support] php+odbc
 
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


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.2 - Release Date: 24/11/04


-- 
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/7edb457a/attachment.html>


More information about the unixODBC-support mailing list