Use the following code to call IE in PHP:
Copy codeThe Code is as follows: browser = new COM ("InternetExplorer. Application ");
Failed to call normally. An error is reported directly:Copy codeThe Code is as follows: Fatal error: Uncaught exception 'com _ exception' with message 'failed' to create com object 'internetexplorer. application': access is denied.
The reason is that the COM component of IE prohibits normal account access by default. The solution is as follows:
1. Open Control Panel-Administrative Tools-component services
2. In the component service panel, choose console root directory> component service> Computer> my computer> DCOM configuration (for example)
3. Find Internet Explorer (Ver 1.0) in the right window, open the Properties window, and switch to the security label.
4. In the security label, select "Start and activate Permissions" and click "edit". Add the IIS account used by the website or add the Guests group to OK (for example ).
5. Restart IIS. Now you can call IE normally.