Re: remote printing?
| From: | Matt Dunford | Date: | Fri, 13 Oct 2000 17:00:08 +0000 |
| Subject: | Re: remote printing? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20041@lists.php.net to get a copy of this message | ||
Well, I guess it could work. Just make a connection to your dbase
database, start drawing out the info that you need, and pipe it to lpr as
below.
$lines = func_for_getting_dbase_info("file.txt");
$fp = popen( "/usr/bin/lpr", "w" );
while ($line = array_shift($lines))
fputs($fp,$line);
pclose($fp);
On Fri, 6 Oct 2000, peter tatischev wrote:
>> 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
>> >
>>
>
>
>--
>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
>