Re: PHP_PRINTER.DLL

From: Date: Mon, 23 Oct 2006 16:23:16 +0000
Subject: Re: PHP_PRINTER.DLL
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4277@lists.php.net to get a copy of this message
# effe.stm@virgilio.it / 2006-10-23 10:22:26 +0200: > php 5.1.2 for windows > pecl extension php_printer.dll for 5.1.2 and also using the 5.1.6 > > 1 SERVER > 1 CLIENT sharing one PRINTER > > the client shared printer is "mounted" on the server for a simple reason. My script > printit.php SHOULD print on the client printer. > > THE BUG ITSELF IS: > - if I open a command shell on the server and I type and run the following command > c:\>c:\program files\php\php.exe c:\www\printit.php the print shoots correctly > - if I run it from the client browser it doesn't > http://192.168.0.222/printit.php > - if I try to run the same script from within another script with shell_exec it doesn't > work with the same error > - the returned error is PHP Warning: printer_write(): couldn't allocate the printerjob > [5] and obviously is reported for each printer_write code line. > - the apache is 2.0.55 and it is running on a windows xp pro > - the client is another windows xp pro where the printer is shared with permission for > everybody and for guests (less security than this... is not possible) Looks like the problem lies in the permissions the web server operates with. Check your operating system's documentation for the permissions necessary to use a (shared) printer. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991

« previous php.pecl.dev (#4277) next »