Re: AW: [PHP] Sending the output of a web page to a printer

From: Date: Wed, 21 Jul 2004 21:42:55 +0000
Subject: Re: AW: [PHP] Sending the output of a web page to a printer
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-191413@lists.php.net to get a copy of this message
OK, but here's the rub: I need to print a web page. Any ideas? "Jan Tore Morken" <schabuda@gmail.com> wrote in message news:ccaafd8a04072114315a7da5d6@mail.gmail.com... > 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?

« previous php.general (#191413) next »