954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Reading from USB port using php?

Hey,

I have a USB barcode scanner and would like to make a php based program to interface with it. How can I read from the USB port using php (Mac OSX).

thanks

Dan

rudysplif
Newbie Poster
2 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

You can't AFAIK.

Certainly not if the USB scanner is on a client machine rather than a server.
Moreover, I've never heard of an extension to do this.

If you merely wish to use the barcode scanner as input for a form, then you should surely have got drivers with the device that 'fool' the computer into thinking that it's a keyboard.

Roberdin
Supreme Evil Overlord
Team Colleague
282 posts since Feb 2003
Reputation Points: 63
Solved Threads: 6
 

Ya, I was planning on only server side usage... I'll also look into that style of driver (I actually haven't got the scanner yet, it should be coming today).

Thanks for your help

Dan

rudysplif
Newbie Poster
2 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

Hello rudysplif,

Look on the next link, examples of a projet CueCat. On this How-to you have some scripts (perl, python, tcl, javascript, ...) for use scanner barcode. Without driver because it use the same communication that a keyboard.

http://www.beau.lib.la.us/~jmorris/linux/cuecat/

I have some problem with my english language and not understand all about this resource :confused:

fpepito

fpepito
Newbie Poster
14 posts since Oct 2004
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You