lonetraceur Posted March 18, 2008 Share Posted March 18, 2008 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 https://forums.phpfreaks.com/topic/96723-com-internetexplorerapplication-not-appearing/ Share on other sites More sharing options...
BlueSkyIS Posted March 18, 2008 Share Posted March 18, 2008 you're trying to use a server-side language to perform client-side functions. PHP creates the COM object, but the COM object is stored in the PHP variable $browser. you can't 'display' a PHP variable on the client's desktop. Link to comment https://forums.phpfreaks.com/topic/96723-com-internetexplorerapplication-not-appearing/#findComment-495005 Share on other sites More sharing options...
lonetraceur Posted March 18, 2008 Author Share Posted March 18, 2008 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 https://forums.phpfreaks.com/topic/96723-com-internetexplorerapplication-not-appearing/#findComment-495055 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.