Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

php and microchips

0 views
Skip to first unread message

mirfan

unread,
Dec 18, 2009, 3:31:01 AM12/18/09
to
Hi,
I am working on HR web application which give me some trouble now when
i come to the attendance part please some one help.
the problem is that i have to write Employee information on a
microchip card, if someone has the idea please help me.
Regards

Johannes Keßler

unread,
Dec 18, 2009, 6:04:01 AM12/18/09
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

well it depends on how the user will input the data.
eg. will be a MS programm needed to provide the data or is the data put in via a
Browser (which means you do not install anything)

If this is decided then you need the application which writes to the microchip.
I don't think that php can write directly to the chip.
You could create the commands for an external tool, and launch this command via
a system call.

but you need an external tool which can communicate direclty with the chip.

regards,
johannes ke�ler
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)

iEYEARECAAYFAksrYaEACgkQE++2Zdc7EtdrOwCfTcJQNG2Bgv8uqzwhz5QRqmNJ
eGkAn0RbBkgu5N9Q5KzFYDVgHCQj70DP
=QJcw
-----END PGP SIGNATURE-----

r0g

unread,
Dec 18, 2009, 8:13:38 AM12/18/09
to

Hi Mirfan,

If the 'microchip card' is client side (i.e. not directly connected to
the server your PHP code is running on) then PHP will not be able to
touch it. In this situation you would need 'client side' code i.e. code
that runs on the remote users machines, not the server.

PHP is generally used server side only, for client side scripting you
would need another language such as Java, Javascript or Flash/AS3. For
interfacing with a clients hardware you can probably only use Java, and
even then there's no guarantee the card readers API has Java bindings so
you may need to use C or C++ but Java is where I would start.

Find out everything you can about the card readers and it API then go
join a newsgroup dedicated to Java, C or C++ whichever seems most
appropriate. Just to be clear, PHP will NOT help you talk to card
readers unless your client machines are running PHP, which they will not be!

Good luck,

Roger.

C. (http://symcbean.blogspot.com/)

unread,
Dec 21, 2009, 8:42:49 AM12/21/09
to

As others have said - this is WAY off topic here.

If the card writer is client-side then go read about how to play
outside the sandbox (its not impossible, but its a quite a complex
process - this ensures that malicious websites are limited in the
damage they can wreakk on your PC).

If the card writer is connected server-side, then it should be very
simple as long as you have a CLI tool for writing the cards - just
shell-out to run the program.

Of course, it may be a lot simpler to pre-program the cards, then
provide a page to allow the operator to link a programmed card to an
employee.

C.

JustWondering

unread,
Dec 21, 2009, 2:24:40 PM12/21/09
to

The card making machine, typically come with an API. That's where you
should start.

0 new messages