php - Read data from smart card reader -
i'm still new in programming , situation is: want webpage connect mysql using php how read data card reader in way? using php also? , how format or read data card? , necessary me card reader has sdk can read data card?
a php web application's code typically executed on server side, if want interact smartcard reader on client side, need use else besides php code access client-side hardware. there different possibilities on how perform such access:
you develop/use java applet embedded web page -- web applications @ moment. if smartcard reader pc/sc-compliant, use java smartcardio api within applet access reader , forware information php application on server.
another option client-side application (you need create , provide application) acts web server , processes json (or whatever) get/post requests. client-side application access smartcard reader , web application's (java) script code send json (or whatever) requests retrieve card data.
instead of client-side stand-alone application create web-browser plugin (again, you need create , provide plugin). plugin act proxy between web-application , smartcard reader.
Comments
Post a Comment