Re: PHP_PRINTER.DLL

From: Date: Mon, 23 Oct 2006 14:42:39 +0000
Subject: Re: PHP_PRINTER.DLL
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4278@lists.php.net to get a copy of this message
Looks like a permission problem to mee. Running a script from the command line does not usally have the same permisions as the same script run from a web server. The server uses an account to execute all requests. This user account should have access to the printer in or to print. Being a member of everyone might fix this but it will also create a less secure web server. Create a special group that get's access to the printer and include the web user in this group should solve your problem. - Frank > Dear sirs, > > where is located the php_printer.dll home page? > > Or, where is located this project now? > > Here it is not available http://pecl.php.net/package/printer > > Thank you for any answer. > > I'd like to post the following issue: > > I thank you in advance if you give me 3 minutes of your time. > > the bug is this: > > 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) > > Did you eard it? Any idea? > > Thank you for any tip and answer. > > Robert - Verona - Italy >

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