I’m trying to use PHP to store username and password to a text file on a USB thumb drive. So when user comes back to sign in with USB key a pop should open and should prompt for username and password. So my question is how can i detect the USB thumbdrive using PHP. So it is possible with Client or ServerSide. And my Operating system is Windows 7.
I found similar question on stackoverflow about using shell scripting,but could’nt understand,so can some help me understand
Edit: I asked for explanation from possible duplicate question , and please dont vote for closing this question !!!
What you are trying to accomplish is possible (impossible ideas are pretty rare)
How you are trying to accomplish it is not. This definitely shows the neophyte programmer “bit off more than you can chew” mentality. You cannot grab data from the client. They can, however, push it to you –
You could create a small autorun.ini file or something similar for a USB drive that would actively open a browser window on the client pointed to a page on your site to handle authentication. The specifics of such an implementation would be quite verbose and steeped in security challenges, but this is possible.
Like I said, what you are trying to do is definitely possible. Don’t get discouraged when you ask how to do something and are told it’s impossible. Find out why it’s “impossible” – it may not be. If it is, find out how other people would do it, and go from there.