0
$hostname = "localhost";
$database = "RUTHLESS";
$user = "ruthless";
$password = "guessit123";
$conn_string = "DRIVER={IBM DB2 ODBC DRIVER - DB2COPY1};HOSTNAME=$hostname;PROTOCOL=TCPIP;UID=$user;PWD=$password;DATABASE=$database;";
$conn = db2_connect($database, $user, $password);
if ($conn) {
echo "Success";
db2_close($conn);
} else {
echo "failed ".db2_conn_errormsg();
}
上述程序不會在瀏覽器窗口上顯示任何內容?代碼似乎卡在db2_connect()函數上。PHP在運行Apache服務器的Windows中與DB2連接
仍存在問題... :( – user2699270
能否請您發表您的錯誤味精或異常 –
沒有錯誤消息或異常顯示...只是身體是空白的...它現在顯示任何東西...在瀏覽器中的頁面是完全空白的.... – user2699270