Forum Moderators: coopster
It goes something like this. You'd write the PHP script for your webserver and it would query the DB2 box using SOAP, XML-RPC, or WDDX. The DB2 box would have a set of RPCs available to you that would perform the specific tasks and return the data.
$dsn = 'DRIVER={driver_name_here}; other_required_variables_here;';
$db_link = odbc_connect($dsn, $user, $pwd, SQL_CUR_USE_ODBC)