Question

Je dois intégrer mon CardScan ( http://cardscan.com/) avec mon PHP afin que je puisse obtenir des informations de la carte numérisée avec l'appareil.

Un indice sur l'endroit où je devrais commencer?

-

Je vais essayer de l'intégrer avec mon environnement de développement Ubuntu, et l'appareil sera Conected à mon ordinateur via USB.

-

Je suis Givin essayer de SANE, mais il ne trouve pas l'appareil: https://askubuntu.com/questions/24297/problem-with-sane-and-cardscan-cant-find-the-device

Était-ce utile?

La solution

You've not provided a lot of the information we would need to answer your question accurately/completely.

PHP is usually run on a webserver to provide a UI via a browser over HTTP - in this architecture the PHP code has no access to the hardware on the client. It is possible to write CLI / Daemon and even GUI applications using PHP integrating directly with the window manager - is this what you are talking about? What OS will this run on?

Since CardScan appears to be a simple scanner, then if the PHP code is running on the machine where the scanner is attached, then it should simply be a matter of running an external program to talk to the scanner and capture the image.

  • for Linux/Unix use SANE
  • for MSWindows, use a CLI TWAIN tool - e.g. twain commander
  • Apple MacOs seems to use a twain API - but you'll need to search to find tools - however it also supports SANE

Autres conseils

Start by asking them if they have an API, webservice, public interface or a connector that communicates with the outside world. PHP is a web programming language. If this card reader is a phisical device maybe Python or C++ are better for this job.

From what I see their are synchronizing the cards with Outlook so they must have some software outputing information. Try to figure out what is the format and if is available to intercept somewhere.

Now this depends on how the card-reader interfaces out the data from the scanned card. My experience with magnetic stripe readers is that the data is output as keyboard type input.

I would suggest that you need to develop some form of Client Side app - to handle the input, and then post data to the relevant PHP modules on a webserver.

A good start would be the developer manuals for the hardware to understand how it interfaces.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top