It can't be done. There's no way a server-side language like php could access the client's machine, and JavaScript is deliberately restricted. Apparently it's got something to do with some lame idea they call "security".