Call ActiveX component
| From: | Louis Young | Date: | Fri, 14 Jan 2005 14:15:29 +0000 |
| Subject: | Call ActiveX component | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-25327@lists.php.net to get a copy of this message | ||
Hi there
I'm trying to call an ActiveX object from PHP. The code in ASP looks as follows:
Set DelphiASPObj = Server.CreateObject("ClientBalance.coClientBalance")
DelphiASPObj.GetClientBalance (Trim(Session("Outlet")) & "E") , Trim(Application("FinURL")), ReturnBalance
I tried this in PHP:
$DelphiASPObj = COM("ClientBalance.coClientBalance"); // Line 281
$ReturnBalance=$DelphiASPObj->GetClientBalance(trim($Outlet_session)."E"),trim($Application["FinURL"]));
But I get the following error message:
*Parse error*: parse error in *C:\Program Files\Apache Group\Apache2\htdocs\spar\admin\rpt_electrans.php* on line *281
Any ideas?
Cheers
Louis
*