Is it possible to print a barcode from the client machine which is connected to the Barcode machine using PHP?

This may be helpful with respect to the problem of aligning it correctly.
Click Here

You probably need some javascript but even then, you won't be printing directly. You'll need to respond to a print dialog box:
Click Here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.