Jump to content

COM Internetexplorer.application not appearing.


lonetraceur

Recommended Posts

Hi everyone,

 

I'm trying to get an Instance of Internet Explorer open through PHP using a COM object, but it won't appear on the desktop. I've made sure the Apache server can "interact with desktop" and the taskmanager says that the code is creating the iexplore.exe process, but it seems it's in the background because the window is not visible... anyone have any ideas at all?!?

 

Code below:

 

<?php

// Open IE
$browser = new COM("InternetExplorer.Application");

// Set IE Attributes
$browser->visible = true;
$browser->fullscreen = true;

// Navigate to URL
$browser->Navigate("http://www.google.com");

while ($browser->Busy) {
	com_message_pump(2000);
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Open IE</title>
</head>
<body>
</body>
</html>

 

Thanks.

Link to comment
Share on other sites

I know this... I'm not trying to create an instance on the client, this is on the server... All it should do is open an instance of Internet Explorer on the server, which it does, but in the background and not in the foreground... therefore I can't see it.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.