Hallo Community,
zu Testzwecken soll über PHP erstmal über XAMPP in Windows 10 Pro eine Datenbankverbindung zu einer IBM AS/400 Maschine hergestellt werden.
Habe mich schon durchs Netz und das Forum, die PHP Manu gelesen, auch ein Redbook von IBM brachte keine Aufklärung.
Code:
Momentane Fehlermeldung:
Warning: odbc_connect(): SQL error: Aufgrund des Systemfehlers 1114: Eine DLL-Initialisierungsroutine ist fehlgeschlagen. (IBM DB2 ODBC DRIVER, C:\Program Files\IBM\SQLLIB\BIN\DB2CLIO.DLL) konnte der angegebene Treiber nicht geladen werden., SQL state IM003 in SQLConnect in ....
Hat jemand Erfahrung damit und kann mir weiterhelfen?
Gruß
zu Testzwecken soll über PHP erstmal über XAMPP in Windows 10 Pro eine Datenbankverbindung zu einer IBM AS/400 Maschine hergestellt werden.
Habe mich schon durchs Netz und das Forum, die PHP Manu gelesen, auch ein Redbook von IBM brachte keine Aufklärung.
Code:
PHP-Code:
$database = "*****"; # Get these database details from
$hostname = "******"; # the web console
$user = "***"; #
$password = "*****"; #
$port = 50000; #
$ssl_port = 50001; #
# Build the connection string
#
$driver = "DRIVER={IBM DB2 ODBC DRIVER};";
$dsn = "DATABASE=$database; " .
"HOSTNAME=$hostname;" .
"PORT=$port; " .
"PROTOCOL=TCPIP; " .
"UID=$user;" .
"PWD=$password;";
$ssl_dsn = "DATABASE=$database; " .
"HOSTNAME=$hostname;" .
"PORT=$ssl_port; " .
"PROTOCOL=TCPIP; " .
"UID=$user;" .
"PWD=$password;" .
"SECURITY=SSL;";
$conn_string = $driver . $dsn; # Non-SSL
$conn_string = $driver . $ssl_dsn; # SSL
# Connect
#
$conn = odbc_connect( $conn_string, "", "" );
if( $conn )
{
echo "<pre>";
echo "Connection succeeded.";
echo "</pre>";
# Disconnect
#
odbc_close( $conn );
}
else
{
echo "<pre>";
echo "Connection failed.";
echo "</pre>";
}
Warning: odbc_connect(): SQL error: Aufgrund des Systemfehlers 1114: Eine DLL-Initialisierungsroutine ist fehlgeschlagen. (IBM DB2 ODBC DRIVER, C:\Program Files\IBM\SQLLIB\BIN\DB2CLIO.DLL) konnte der angegebene Treiber nicht geladen werden., SQL state IM003 in SQLConnect in ....
Hat jemand Erfahrung damit und kann mir weiterhelfen?
Gruß
Kommentar