tags:

views:

38

answers:

1

is it possible to print directly to a network printer with PHP using LPR or something similar?

any pointers?

thanks.

+2  A: 

Sure is. If you are on Linux do use LPR.

exec("lpr -P 'printer' -r 'filename.txt');

More on LPR commands.
Take a look into LPR docs. You can easily show the print-queue and more from PHP.

Frankie