|
i have a dll file that return some varaible ,and i want to use that variable in php.
i write this code
Create DLL:
In VB create a New Active X DLL Project. In the Class1 properties
change the name (ex: CUserChangePassword). Change the Project name
(ex: UserChangePassword). Paste the Visual Basic source code from
below into the empty class. Go to File and Make dll.
-----------------------------------
Register DLL:
Copy DLL to server, remember what directory you copy it into. At
server click Start, Run, cmd, OK. Change to the directory the dll is
in. regsvr32 dllname (ex: regsvr32 UserChangePassword.dll). You should
see a message saying registration succeeded.
-----------------------------------
Create your PHP page. Sample code below:
$obj = new COM("UserChangePassword.CUserChangePassword");
$result = $obj->UserChangePassword
($strLogin,$strDomain,$strPassword,$newPassword);
$obj = null;
unset($obj);
but it gives me error. please tell me it is possible or not possible in php
|