PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a requirement where I have to print to a printer directly, it is more or less like a print job where I have to send a bunch of generated documents to a printer instead of the browser.
if it's clientside, the closest you can get is using something like scriptX
if it's serverside printer or on the same network you'll need to interface with the printer through a socket and send the output to it.. (not the smallest job)
nathanr wrote:if it's clientside, the closest you can get is using something like scriptX
A PDF would work better.
agreed, and if it can't be pdf'd (like a stream of shipping labels to a custom printer) its probably outside of the scope of php and would require a custom client application or object.
what about somekind of ftp to printer utility. You could use a printer with an ftp server or a utility that receives documents through ftp and the print them.