Log in

View Full Version : print in php



stephen64_14
02-06-2007, 05:45 PM
how to print data in php

Twey
02-06-2007, 06:36 PM
print $data;

stephen64_14
02-06-2007, 09:49 PM
I referred to print in a printer

Twey
02-06-2007, 10:12 PM
See the comments on print (http://www.php.net/print). This will do for Windows. If UNIX, simply pipe the data to the lpr command, or the equivalent on your system.

stephen64_14
02-06-2007, 10:45 PM
ok thanks

djr33
02-07-2007, 04:30 AM
Huh? Serverside, right? That shoudn't be allowed to output to the user's printer, I wouldn't think.

Twey
02-07-2007, 09:06 AM
Not to the user's printer, no. It can print to the server's printer, though.