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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.