I am trying to get php on Linux Centos server access as/400 (iSeries) db2 database.
I am using this IBM guide as much as possible, (though we could not get GUI confi
You need to use ODBC Source Name in odbc_connect() function, not the server IP. In your example AS400 is the name between brackets at the top of odbc.ini file.
odbc_connect()
odbc.ini