| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2004-05-12 15:29 UTC] iliaa@php.net
  [2004-05-12 16:49 UTC] amt@php.net
  [2004-05-20 01:00 UTC] php-bugs at lists dot php dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 02:00:01 2025 UTC | 
Description: ------------ I have done a "configure --with-ibm-db2=/home/db2inst1/sqllib", then done a make, and a make install. The library : libphp4.so is not created, so I cannot add it to the php.conf in /etc/httpd/conf.d/ directory to be incorporated into the apache config file so that I can resolve the "Fatal error: Call to undefined function: odbc_connect() in /var/www/html/connect.php on line 21" error that I am getting. This is VERY frustrating. I followed the instruction to the letter, and I *DID* RTFM. without any success. I need to connect to DB2 using the DB2 modules, not the unixODBC modules, since these seem to have fatal errors built in to them when I try to connect to DB2. HEEEEEEELPPPPPP!!!!1! Mairhtin O'Feannag Reproduce code: --------------- <html> <head> <title>Simple SELECT statement</title> </head> <body bgcolor="white"> <?php /* need to set $dsn: data source name $user: what user to connect as $upasswd: password for the user in our examples we simply set the $dsn. The user is the user the web server runs as no password is required. This is a DB2 thing */ $dsn = 'SPIRIT'; $user = 'DB2INST1'; $upasswd = 'DB2INST1'; echo "dsn $dsn"; echo "user $user"; echo "upasswd $upasswd"; $conn = odbc_connect($dsn, $user, $upasswd ); echo "conn: $conn"; if ($conn <= 0) { echo "Error in connection<BR>"; exit; } else { echo "<P>Connection successful\n"; }; ?> Expected result: ---------------- a connection Actual result: -------------- 67.120.110.243/connect.php