Re: AW: [PHP] Sending the output of a web page to a printer
| From: | Jan Tore Morken | Date: | Wed, 21 Jul 2004 21:31:06 +0000 |
| Subject: | Re: AW: [PHP] Sending the output of a web page to a printer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191411@lists.php.net to get a copy of this message | ||
Yes, it's possible, I've done it myself.
Here is a piece of example code:
$handle = popen("lpr -P printer", "w");
fwrite($handle, $message."\n");
pclose($handle);
Hope this can help you a bit. To see what I used it for, check this
out: http://www.wobbled.org/printer/
Regards,
Jan Tore Morken
On Wed, 21 Jul 2004 12:16:31 -0400, Vern <vernon@comp-wiz.com> wrote:
> I need to send the output of a web page to a printer on a schedule
> (obviously I'll use a cron job for scheduling) and am wondering if I can do
> this through php. I know you can use the command line lpr in SSH but can I
> use PHP do do it?