Status of IE

Discussion in 'JavaScript' started by cedric813, Oct 21, 2007.

  1. #1
    Hi everyone,

    I have a remote computer, at a different location, which should have internet explorer open at all times. I would like to be able to login to my web site and check to see what the status of internet explorer (whether it is open or closed) is at any time, anywhere in the world. It doesn't matter what web site is being displayed, I just want to make sure that a copy of IE is open...and if it is not, I would like some kind of warning to appear when I check the status online. Anything in PHP, javascript would be great. I'm a beginner so any code examples would be very helpful.

    Thanks so much,
    Cedric
     
    cedric813, Oct 21, 2007 IP
  2. ezpz

    ezpz Peon

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not sure a purely web-based solution is going to be possible - if IE can be looking at any web-site, then I don't think you can really get any information.

    If this was me, I'd write something in perl and schedule it to run on your remote computer every 5 minutes. You could use Win32::process::Info to get the Windows processes, and check for iexplore.exe. You could then use LWP::UserAgent to request a web-page - http://your-site/cgi-bin/up if iexpore.exe was there, and http://your-site/cgi-bin/down otherwise.

    From there on it gets easier. cgi-bin/up and /down simply update some log files. You have another cgi script, cgi-bin/check, which looks at which file was updated last (and how long ago), and displays the status you want when you visit it.

    The alternative would be to build some kind of IE add-in, but I'm afraid that's not an area I know anything about.
     
    ezpz, Oct 21, 2007 IP