Re: Direct output to printer

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Direct output to printer
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47246@lists.php.net to get a copy of this message
On Thu, 5 Apr 2001, Plutarck wrote: > Ah, the joys of strlen(). > > That's your first question, but now for the second. > > Sending data directly to the printer is basically a client side function, > and as PHP is totally server side it just can't do it. Not technologically > possible. > > There are some "printer direct" type programs around, and you can certainly > figure out a way to make PHP work with those, but that's about all you can > do. Well... If you can get 'lpr' to except requests from 'nobody' you might just have a solution ( AND a problem ;) ) ('nobody' is here pointing to the user set up to run your webserver-processes. 'lpr' is a standard print under unix) But as Plutarck just said : It's client-side stuff, and all dependant on what you use and if that client can do it. I know that Netscape doesn't accept this kind of requests. -- Knut ------ Knut H. Hassel Nielsen Principal Engineer / Avdelingsingeniør Norwegian University of Science and Technology / NTNU Department of Computer and Information Science / IDI N-7491 Trondheim, Norway Phone Office / Telefon jobb : (+47) 73 59 18 46 Fax Office / Telefax jobb : (+47) 73 59 17 33 Cell. Phone / Mobiltelefon : 91 59 86 06

« previous php.general (#47246) next »