Hans Inge Hagen
asked on
Script to send card reader data to a server without using the browser
Hi,
I am trying to send data from a card reader to a server (mySQL database) without going trough a web browser. When swiping the card it will return a digit (xxxxxxxxxxx) and this number will be sendt to a script on the server. This script will submit it into the database.
Do you know how to make a listerner script that will take the data and send it to a "logg.php" on the server? ... on Windows 7
I am trying to send data from a card reader to a server (mySQL database) without going trough a web browser. When swiping the card it will return a digit (xxxxxxxxxxx) and this number will be sendt to a script on the server. This script will submit it into the database.
Do you know how to make a listerner script that will take the data and send it to a "logg.php" on the server? ... on Windows 7
why to a logg.php ?? which involves the web at all and a php routine running on the server?
instead take the output of the card reader and then send it directly to mysql in the format your database requires.. What does the card reader output right now? .. The above requested information would be nice as well. Where are we listening ? is there a specific port and what format are we waiting for?
Too many questions.. not enough answers to even start a reasonable answer
instead take the output of the card reader and then send it directly to mysql in the format your database requires.. What does the card reader output right now? .. The above requested information would be nice as well. Where are we listening ? is there a specific port and what format are we waiting for?
Too many questions.. not enough answers to even start a reasonable answer
ASKER
My Card-reader (mifare) is on a USB (simulated com port 4) .. it will give me a number (1234567890). This number needs to be sent to a mysql server (not on the same machine) and added as a record together with a timestamp ... This is a members log system on a gym.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I do not know VB .. but I will search for an solution somewhere. Thanks
Try to learn - with Visual Studio Express it's free, with some knowledge of programming it's easy to learn. It's worth the effort.
Try "Visual Studio 2012 Express für Windows Desktop" or "Visual Studio 2010 Express All-in-One ISO".
Try "Visual Studio 2012 Express für Windows Desktop" or "Visual Studio 2010 Express All-in-One ISO".
What does the barcode scanner device in detail (actice, passive, protocol, etc.) ?
If it contacts a server via HTTP, i.e. by accessing a URL like
The script could do anything you desire with the code. Using some kind of web- or applet server would come with multithreading capabilities without the need of coding this, meaning i.e. intrinsic support of multiple barcode scanners without the hassle of collisions.
If the device acts different, I'll have to meditate again over this :-)
Possibly you can give the type of the barcode device and some link to a manual ?