Event logging when USB device is plugged

Discussion in 'PHP' started by alimoses, Nov 30, 2011.

  1. #1
    Can someone help me out how to write a script to log events when a usb device is plugged?
     
    alimoses, Nov 30, 2011 IP
  2. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #2
    On your server? I'm not sure php is the best language for this... try Java, maybe perl.
     
    mfscripts, Nov 30, 2011 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    AFAIK, PHP has no low-level hardware access. What you might be able to do depends on exactly what you're trying to accomplish.
     
    Rukbat, Dec 1, 2011 IP
  4. GokuDBZ

    GokuDBZ Well-Known Member

    Messages:
    408
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    140
    Digital Goods:
    2
    #4
    You can do it like this.

    Code a desktop application which will track the events whenever the USB device is plugged and then send the data to the server and as a log file. Your PHP script will read the log file and then do the process.
    If you aren't clear what I'm trying to say then take a look at this website:
    http://ill3gal.com/ they give you a free desktop app and you put your code and then click to save online.
    Similar technique can be used for your case/problem.
     
    GokuDBZ, Dec 1, 2011 IP