You need to set the php. ini file, find this line of com. allow_dcomtrue, and enable the com component to use PHP to call the OCX control. This is not a problem, but in reality, the flash method is more common. There are not many actually used ocx, and there are few materials. We can see a successful example on the Internet: in fact, calling the OCX file is the same as the DLL file.
Php. INI file, find this line of com. allow_dcom = true: enabling the com component support using PHP to call the OCX control is not a problem, but the flash method is more common in reality. There are not many actually used ocx, and there are few materials. We can see a successful example on the Internet: in fact, calling the OCX file is the same as the DLL file.
You need to set the php. ini file, find this line of com. allow_dcom = true, and enable the com component support.
Using PHP to call the OCX control is not a problem, but the flash method is more common in reality. There are not many actually used ocx, and there are few materials. We can see a successful example on the Internet:
Actually called
OCXFiles are the same as DLL files.
First, set the target DLL orOCXOr what control files are included
Include ("D: \ wwwroot \ Authen.Ocx");
Then, use the COM function to call it. The parameter is a file name..It is important to call the class name.
$ Word = new COM ("Authen. CAuthenCtrl") or die ("Unable to instancate Word ");
This can be done simply.PHPCall controls ~~~ Haha ~~~
Even ActiveX controls made with MFC,
An Authen is generated.OcxFile,
If you wantPHPFirst
Include ("Authen.OcxPhysical path ");
$ MyCom = new COM ("Authen. CAuthenCtrl") or die ("Unable to instancate Word ");
Authen is the file name.
CAuthenCtrl is the class name
Source: http://blog.chinaunix.net/uid-22414998-id-113455.html
Found from the manual
// Start word
$ Word = new COM ("word. application") or die ("Unable to instancate Word ");
Print "Loaded Word, version {$ word-> Version} \ n ";
// Set it to the front
$ Word-> Visible = 1;
// Open an empty document
$ Word-> Documents-> Add ();
// Do whatever you want
$ Word-> Selection-> TypeText ("This is a test ...");
$ Word-> Documents [1]-> SaveAs ("Useless test.doc ");
// Close the word
$ Word-> Quit ();
// Release the object
$ Word-> Release ();
$ Word = null;