Dear friends,
I am trying to build integrate the smart card capabilities in PHP to the exisiting PHP project. Since Smart card is the client side application, and our XYZ client has demanded for a PHP application, I tried to create a DLL so that I can call all the smart application function through the DLL.
$SC = new COM("SCLib.Scrdr") or die ("Cannot start the COM interface");
//$obj = new COM("SCLib.Scrdr","172.168.0.14");
//$SC->GPort = 0;
$output=$SC->SCconnect(0,"Status");
echo $output;
The Activex DLL was created without any error and it is ensured all the COM objects are working fine. Now I used the PHP designer 2000 (IDE) to integrate the DLL in to PHP. In the PHP designer the code worked fine and i was proceeding further development. At the last moment when i uploaded the code to the apache webserver it is not working..
I ensured the following:
- The DLL was registered properly.
- I made the following changes in [COM ] of PHP.ini
[com]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;com.typelib_file =
; allow Distributed-COM calls
com.allow_dcom = true
; autoregister constants of a components typlib on com_load()
;com.autoregister_typelib = true
; register constants casesensitive
;com.autoregister_casesensitive = false
; show warnings on duplicate constat registrations
;com.autoregister_verbose = true
Still it the code is not working in the Apache. What i doubt is PHP Designer has its own webserver, so when i was developing it was working fine with the PHP code, where as when i put it in the Apahce, there needs to be some changes made in the INI & Extensio.
Please could you help me to resolve this issue.
with best regards
Anandavel