×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
No clue what I am doing wrong....
Here is my first test script ....
https://sv1.americanfirstfinance.com:8158/kwik/aff_test/aff.php
Not sure what I am doing wrong when trying to connect to DB2.... I have
tried many things...
How does one validate which db driver is installed. I am hoping IBM_DB2
is installed. Just do not know how to check. Does it require ssh?
Does the Green Screen give you the same functionality as ssh?
<?php
$db2Conn = db2_connect( 'MyDB2DB', 'Usr', 'Pwd', DB2_I5_NAMING_OFF );
//$db2Conn = db2_connect( 'MyDB2DB', 'Usr', 'Pwd', DB2_I5_NAMING_OFF );
//$db2Conn = db2_connect( '', 'Usr', 'Pwd', DB2_I5_NAMING_OFF );
//$db2Conn = db2_connect( '', '', '', DB2_I5_NAMING_OFF );
//$db2Conn = db2_connect(
'DATABASE=MyDB2DB;HOSTNAME=localhost;PORT=8158;PROTOCOL=TCPIP;UID=Usr;PWD=Pwd;',
null, null, DB2_I5_NAMING_OFF );
//$db2Conn = db2_connect(
'DATABASE=MyDB2DB;HOSTNAME=localhost;PORT=8158;PROTOCOL=TCPIP;UID=Usr;PWD=Pwd,
'', '', DB2_I5_NAMING_OFF );
if ( false === $db2Conn )
{
echo 'Failed To Connect. '.db2_conn_errormsg() ;
}
else
{
echo 'Connection Completed!' ;
db2_close( $db2Conn ) ;
}
?>
It is not working......
Am I just that brain dead?
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
As an Amazon Associate we earn from qualifying purchases.