PHP, ODBC, Informix troubles?
Posted in 2007
Topics: Installation, Setup & Upgrades, Connectivity: ODBC / JDBC / .NET
Kinda new to all three of these, thought maybe you guys could help me out. I have an Apache2.2/PHP5 installation on my Windows PC. I have an Informix database on a Unixware box on the network. I can connect to the db from my Windows computer via the DSN I have setup. The DSN is an ODBC connection using IBM Informix ODBC Driver v 3.81. I can use this DSN in Excel to pull tables from the db. I then attempt to setup the PHP connection via ODBC: <?php $conn = odbc_connect('dsn','un','pw'); if (!$conn) {exit("Connection Failed." . $conn);} elseif ($conn != 0) {echo "Connection ID: " . $conn;} ?> And the connection fails every time. Anyone have any suggestions? Can I not use this ODBC connection?
http://www.ibm.com/developerworks/db2/library/techarticle/dm-0607bombardier/ http://www.ibm.com/developerworks/db2/library/techarticle/dm-0606bombardier/ -Shesh dysfunct <DysfunctY2K@gmail.com> Sent by: informix-list-bounces@iiug.org 11/10/2007 20:46 To informix-list@iiug.org cc Subject PHP, ODBC, Informix troubles? Kinda new to all three of these, thought maybe you guys could help me out. I have an Apache2.2/PHP5 installation on my Windows PC. I have an Informix database on a Unixware box on the network. I can connect to the db from my Windows computer via the DSN I have setup. The DSN is an ODBC connection using IBM Informix ODBC Driver v 3.81. I can use this DSN in Excel to pull tables from the db. I then attempt to setup the PHP connection via ODBC: <?php $conn = odbc_connect('dsn','un','pw'); if (!$conn) {exit("Connection Failed." . $conn);} elseif ($conn != 0) {echo "Connection ID: " . $conn;} ?> And the connection fails every time. Anyone have any suggestions? Can I not use this ODBC connection? _______________________________________________ Informix-list mailing list Informix-list@iiug.org http://www.iiug.org/mailman/listinfo/informix-list