It isn't difficult at all. I simply create a PHP wrapper function for each dll function. Here is an example:
Function AddUserAccount($strUserID = "",
$strUserPwd = "",
$strLName = "",
$strFName = "",
$strAddr1 = "",
$strAddr2 = "",
$strCity = "",
$strState = "",
$strZip = "",
$strTel = "",
$strAltTel ="",
$strFax = "",
$strEmail = "",
$strDept = "",
$strTitle = "",
$blnDeptPrimary = FALSE,
$strAltDept="")
{
$dbc = new COM("ActionSystem.clGetRecords") or die("Unable to instantiate COM object");
$success=$dbc->ADOAddUserAccount($strUserID,
$strUserPwd,
$strLName,
$strFName,
$strAddr1,
$strAddr2,
$strCity,
$strState,
$strZip,
$strTel,
$strAltTel,
$strFax,
$strEmail,
$strDept,
$strTitle,
$blnDeptPrimary,
$strAltDept);
$dbc->Release();
$dbc = null;
return $sucess;
}
Actionsystem is the dll
clGetRecords is the class
and ADOAddUserAccount is the function in the dll.
Hope this helps.