I am developing a web application that requires barcode printing and then reading using bar code scanner.
My questions are the below -
1.Can i use any bar code scanner or i need any specific one which will work with PHP?
2.How the bar code printing will be done??Do i need to use any class for it?
1.) as long as it can scan and convert the code to text (most work just fine)
2.) most barcode readers convert the barcode into an alphanumeric string then they append a return/line carriage to the end so as to end the code off.
You can process them quite easily once you have the code, you can send via javascript or just straight to your HTML form’s input fields
The server side language should be totally irrelevant since if you are using a bar code reader as input to a web page then it is simply providing the form field content instead of it being entered via the keyboard.
The bar code reader isn’t working with PHP - it is working with the operating system of the local computer. It is just another input device that if properly configured will work just like a keyboard.
For barcode printing you just need to select and install the appropriate barcode font and then output the content using that font. Since you can’t guarantee that your visitors will have the appropriate barcode font installed on their computer you can’t guarantee that an HTML web page will be able to display the barcode. If you generate a PDF instead (eg using the PHP library from fpdf.org) then you can install the appropriate barcode font onto your site to work with that in generating a PDF. I know that this works because I have written PDFs generated this way that include barcodes.