[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PHP3 iodbc2 et postgresql



Bonjour,

Je me livre en ce moment a des tests. Je veux acceder a une base de
donnee (postgresql p.e.) au travers de ODBC depuis un script php3. J'ai
donc installe tout ca sur ma patate 2.2 r3 :
ii  apache            1.3.9-13.2           Versatile, high-performance HTTP ser
ii  apache-common     1.3.9-13.2           Support files for all Apache webserv
ii  apache-doc        1.3.9-13.2           Apache webserver docs
ii  libiodbc2         2.50.3-1             iODBC Driver Manager
ii  libiodbc2-dev     2.50.3-1             iODBC Driver Manager (development fi
ii  odbc-postgresql   6.5.3-26             ODBC support for PostgreSQL
ii  postgresql        6.5.3-26             Object-relational SQL database, desc
ii  postgresql-client 6.5.3-26             Front-end programs for PostgreSQL
ii  postgresql-doc    6.5.3-26             Documentation for the PostgreSQL dat
ii  php3              3.0.18-0potato1_i386 A server-side, HTML-embedded scripti
ii  php3-doc          3.0.18-0potato1_i386 Documentation for PHP3

Le probleme est qu'il y a zero doc avec libiodbc2, libiodbc2-dev
odbc-postgresql.
D'autre part d'apres les doc et http://www.php.net/ php3 semble
supporter odbc en natif (unified odbc), mais le srcript suivant me donne
une erreur :

<html><body>
<h1>test</h1>
<?php odbc_connect("DSN=jesaispascreerdeDSN","","");
?>
</body></html>


Fatal error: Call to unsupported or undefined function odbc_connect() in
/chemin/tres/long/iodbc-2.phtml on line 4

Voila donc les questions que je me (et vous) pose :
odbc et php3, ca marche vraiment sur une patate ?
si oui
J'ai installe ce qu'il faut ou je me suis gourre qqpart ?
comment configurer libiodbc2 et php ?

D'avance merci a tous les debianiens qui sauront eclairer ma lanterne.

Christophe
-- 
char*p="[)1++++++11+(QI1)9191991)9)1)(II1)919Y91)9)1)(AK+9;991+3*(9I1*IY991)Q1\
)(1I1))A91991)Q1)(+)1)1++9;)Q1+(";main(_){while(*p){for(_=*p-32>>3;_;--_)
putchar(' ');if(!(_=*p++-32&7))putchar('\n');else while(_--)printf("_/");}}



Reply to: