Re: remote printing?
| From: | Unknown Sender | Date: | Fri, 06 Oct 2000 13:45:56 +0000 |
| Subject: | Re: remote printing? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18877@lists.php.net to get a copy of this message | ||
> Perhaps the popen func will work.
> If you're using a linux box, lpr will print whatever stdin you feed
> it.
>
> $lines = file("file.txt");
> $fp = popen( "/usr/bin/lpr", "w" );
> while ($line = array_shift($lines))
> fputs($fp,$line);
> pclose($fp);
Thanks for the idea, but the thing is that
the dbase is on one server, and the Cron module
is there as well, and it should be printed from another
computer. Will LPR work this way?
Thanks,
~Peter
>
> On Thu, 5 Oct 2000, peter tatischev wrote:
>
> >Hey,
> >i need a solution for a catering company that
> >would automatically print out the orders on their
> >kitchen printer.
> >They get their orders from web, and they're stored in several mySQL
> >tables. Somebody told me that the Kron module (for scheduled mySQL
> >queries) and JetDirect can be the solution, but I don't know anything
> >else about it?
> >Any suggestions?
> >
> >~Peter
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-general-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>