Re: [PHP] PHP Printer



Tijnema ! wrote:
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


goes along with the question of "How do I open a new window with PHP?"

Isn't going to happen!... :)

--
Enjoy,

Jim Lucas

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
.



Relevant Pages

  • Re: [PHP] PHP Printer
    ... On 3/14/07, Jim Lucas wrote: ... with client side.. ... PHP General Mailing List ...
    (php.general)
  • Re: String concatenation function, request for comments.
    ... >> left to the client. ... If the resultant buffer is needed beyond the second ... >> If the strings specified for concatenation exceed the buffer available, ... > This demonstrates a fragility of the interface. ...
    (comp.lang.c)
  • Re: Encoding issues with literal strings (C++)
    ... The client runs on Windows and is written ... have many messages that the server sends that include characters ... Some of these messages come from literal strings, ... the a with acute accent has the code 0xE1; ...
    (comp.os.linux.development.apps)
  • Re: multi threading/tasking?
    ... I've been asked to write a server application specifically in VFP that opens a port and listens for one line strings from clients. ... These strings contain info that is used in lookups and calculations on a centrals database or databases and then a response one line string is sent back to the client. ... Right now I have a tiny program that listens to a port accepts the connection from 1 client and echo's back any string that it's sent. ...
    (microsoft.public.fox.helpwanted)
  • Re: CORBA Server cannt running normally( with Naming Service & Notification Service)
    ... This version of TAO is several months old. ... Client COMPLING_ENVIROMENT: Windows XP ... CORBA Server RUNNING ENVIROMENT: SunOS 5.8 Korea Version ... Are you sending UTF-8 strings? ...
    (comp.object.corba)