Re: [PHP] PHP Printer
- From: tijnema@xxxxxxxxx ("Tijnema !")
- Date: Wed, 14 Mar 2007 17:02:46 +0100
On 3/14/07, Jim Lucas <lists@xxxxxxxxx> wrote:
raaj sharma wrote:
> Sir,
> I am trying to use printer functions in my script.pls. help me. The printer is working fine with other documents of ms-word etc.
> pls. help me
>
> Thanx
> Raaj
>
> The code is:
>
> <?php
> $handle = printer_open("");
> printer_write($handle, "Text to print");
> printer_close($handle);
> ?>
>
> It is giving errors like :
>
> Warning: printer_open() [function.printer-open]: couldn't connect to the
> printer [] in C:\apachefriends\xampp\htdocs\Project\Seekitall\printer.php
> on line 2
>
> Warning: printer_write(): supplied argument is
> not a valid Printer Handle resource in
> C:\apachefriends\xampp\htdocs\Project\Seekitall\printer.php on line
> 4
>
> Warning: printer_close(): supplied argument is not a
> valid Printer Handle resource in
> C:\apachefriends\xampp\htdocs\Project\Seekitall\printer.php on line
> 5
>
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Food fight? Enjoy some healthy debate
> in the Yahoo! Answers Food & Drink Q&A.
> http://answers.yahoo.com/dir/?link=list&sid=396545367
You do realize this is going to print to a printer connected to the
server, not the client right?
--
Enjoy,
Jim Lucas
Quite smart question... people always try to combine server side code
(PHP) with client side..
Tijnema
.
Different eyes see different things. Different hearts beat on different
strings. But there are times for you and me when all such things agree.
- Rush
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Follow-Ups:
- Re: [PHP] PHP Printer
- From: Jim Lucas
- Re: [PHP] PHP Printer
- References:
- PHP Printer
- From: raaj sharma
- Re: [PHP] PHP Printer
- From: Jim Lucas
- PHP Printer
- Prev by Date: Re: [PHP] PHP Printer
- Next by Date: RE: [PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache
- Previous by thread: Re: [PHP] PHP Printer
- Next by thread: Re: [PHP] PHP Printer
- Index(es):
Relevant Pages
|