Thanks, but the error is the same as befor.
More ideas?
Simon
----- Original Message -----
From: Dominic Veit <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Sent: Wed, 12 Feb 2003 13:44:47 -0800
Subject: Re: DB access via php_odbc (Linux)
> Hi,
>
> try the following:
>
> odbcinst.ini
> ----------------------
> [ODBC]
> Trace = No
> Trace File = /tmp/sql.log
> Pooling = No
>
> [SAP-DB 7.3.00.20]
> Description = xyz
> Driver = /opt/sapdb/interfaces/odbc/lib/libsqlod.so
> Setup = /usr/lib/libodbcdinst.so.1
> FileUsage = 1
> ----------------------
>
> .odbc.ini:
> ----------------------
> [ANNA]
> ServerDB = ANNA
> ServerNode = localhost
> Driver = /opt/sapdb/interfaces/odbc/lib/libsqlod.so
> Description = SAPDB 7.3.00.xx ANNA
> ---------------------
>
> don't forget to put the .odbc.ini file into the home-directory of the
> user your apache (I presume you are using apache) works with (wwwrun,
> apache, wwwadmin or whatever). /etc/password gives you the
> home-directory of the user your apache works with.
>
> I hope this is of some use for you.
>
> Dominic
>
> --On Wednesday, February 12, 2003 01:17:50 PM +0100 simon schwarz
> <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > i've a little probleme with the odbc driver. I need access to the
> > database via php. So i've installed the php_odbc driver and unix_odbc
> > (OS = Debian Linux 3.0 (woody)).
> >
> > Here is my odbcinst.ini:
> > [SapDB]
> > Description = SapDB Treiber fuer Linux
> > Driver = /opt/sapdb/indep_prog/lib/libsqlod.so
> > Setup = /usr/lib/odbc/libsapdbS.so
> > FileUsage = 1
> > CPTimeout =
> > CPReuse =
> >
> > And my odbc.ini:
> > [ANNA]
> > Description = Die Datenbank des AnnA Projektes
> > Driver = SapDB
> > ServerNode = localhost
> > ServerDB = ANNA
> >
> >
> > If i connect to the Database with this php script i get this message
> > "This document contains no data" (with the mozilla browser)(if i use
> > IE i get a normal error site): <?php
> > $conid=odbc_connect("anna","test","test");
> > echo $conid;
> > ?>
> >
> > The SAPDB version i've tryed are 7.3 and 7.4.
> >
> > Thanks
> >
> > Simon Schwarz
> >
> > ---------------------------------------------
> >
> > Diese eMail wurde mit Amacando Free Mail versendet.
> >
> > http://www.Amacando.de
> >
> > _______________________________________________
> > sapdb.general mailing list
> > [EMAIL PROTECTED]
> > http://listserv.sap.com/mailman/listinfo/sapdb.general
> >
>
>
>
> ---
> Dominic Veit (Software Developer)
> Medical Center, University of Freiburg
> Dept. of Rheumatology and Clin. Immunology
> Hugstetterstr. 55
> 79106 Freiburg (Germany)
> Tel.: 0761 270 36 96
> Fax: 0761 270 35 31
> E-mail: [EMAIL PROTECTED]
---------------------------------------------
Diese eMail wurde mit Amacando Free Mail versendet.
http://www.Amacando.de
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general