ID:               28364
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mairhtin at techsolutionsgroupllc dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         *Compile Issues
 Operating System: linux (rh 8.0)
 PHP Version:      4.3.6
 New Comment:

Do ls -l inside .libs/ directory, which can be found inside 
the php sources directory. 


Previous Comments:
------------------------------------------------------------------------

[2004-05-12 04:11:08] mairhtin at techsolutionsgroupllc dot com

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28364&edit=1

Reply via email to