How to read smart card in php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
crylla81
Forum Newbie
Posts: 4
Joined: Tue Nov 13, 2007 8:08 am

How to read smart card in php?

Post by crylla81 »

Hello!!!
My site have an authentication area, where the user must authenticate using their smart card.
So, to do this I must read user smart card and in some way authenticate him to access in a specific area of my web site.
How can I do this???? ...Have You some code for me?
....If I don't do this using PHP, what I could use? JavaScript? Ajax?

Thanks.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

I'd imagine a smart card reader works similarly to a bar code scanner - at least as far as interfacing with a computer is involved. The bar code scanners I've dealt with mimic a keyboard, so when a barcode is scanned, the decimal equivalent of the barcode is entered on the keyboard port. At that point it's essentially user input & you can do with it whatever you want.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply