#26346 [Com]: Cannot output to a shared printer

From: Date: Fri, 29 Jul 2005 19:24:14 +0000
Subject: #26346 [Com]: Cannot output to a shared printer
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2689@lists.php.net to get a copy of this message
ID: 26346 Comment by: jerry dot martin at gmail dot com Reported By: rich at dwell dot co dot uk Status: Open Bug Type: PECL related Operating System: Windows 2003 PHP Version: 4.3.4 New Comment: Try installing the network printers as local printers. You can do so by setting up the port as local. I did it here at work because I was having the same problems with network printers, but works fine when you setup the printer as local. Previous Comments: ------------------------------------------------------------------------ [2005-07-29 20:15:20] spilon at groupehytech dot com Hi, I run a basic wamp with windows xp and I can't print on a network printer... BUT I can print with my local printer !!! Later I tried to print with my real web server with the linux server and the same thing happened ! Shit I can't sleep 'until I found the bug. Please can someone help me, I'm in a real pickle. ------------------------------------------------------------------------ [2005-01-13 15:08:37] esteban_mate at yahoo dot com dot ar I'm working with php_printer.dll. I install Apache, php and mysql on XP and i want to print on a shared printer on another computer (a WIN98), i have the same drivers in both computers but i get this error when i try to print to it Warning: couldn't allocate new printer job on... Some people said that it's a possible conflict with permissions. i look inside the code of php_printer on http://home.no.net/wsaebo/php-4.0.6/ext/printer/printer.c the problem is with startdoc, but i don't know why Esteban Robles ------------------------------------------------------------------------ [2004-09-24 06:44:52] liviu dot dospinescu at rdslink dot ro There is a problem with php_printer.dll I have made all the changes in php.ini, but launching Winows XP, there is a "WARNING" mesaj like this: "Unknown(): Unable to load dynamic library 'C:\php\extensions'(the location of library) - The specific module could not be found"! Please, help me!! I am working under Windows XP Prof. with php4.3.8. ------------------------------------------------------------------------ [2004-07-23 18:11:18] pete at downplay dot co dot uk I have a slightly different problem (although I am able to recreate the problem you have). PHP/Apache/MySQL is running on a Win2003 server computer. The label printer is running on an XP machine on the network. I have installed the drivers locally on the Apache machine, so Windows should handle the network communication. When I print the document from PHP as follows : printer_start_doc($print); printer_start_page($print); $font = printer_create_font("Tahoma",($h*0.6),($h*0.6*0.8),400,false,false,false,0); printer_select_font($print, $font); printer_draw_text($print, $pname, 0, $h*0.5); printer_draw_text($print, $punits, 0, $h*1.25); printer_draw_text($print, $ser, 0, $h*2); printer_delete_font($font); printer_end_page($print); printer_end_doc($print); The document goes to the printer queue, but does not print. Instead the Status column changes from "Printing" to "Printing - Error" and gives me no further indication as to what the problem with. I have tried printing from Notepad on the Apache server, and it prints fine. I've also tried printing to a different printer in PHP, and the same error happens. I am guessing that php_printer.dll is incompatible with Win 2003. I've tried the solution suggested by basurto at canada dot com, and it made no difference. The second parameter appears in the Document Name column of the print queue with no problems in any case. If anyone has a fix or workaround, I would be most grateful! ------------------------------------------------------------------------ [2004-04-04 17:12:30] jasonm at reslife dot org Don't know if it's a "bug" however.... I have been hearing a lot of talk about people not being able to print to a shared printer with the php_printer.dll extension and functions. I have been doing this for over a year with our churches WAMP checkin system I wrote. Everything works fine as long as you are in windows 2000. When you get to XP, you MUST belong to a domain and the WAMP box MUST be on the domain in order for things to work; therefore you must have some sort of in house domain controller. Also, all of the drivers for any shared printers MUST be on the WAMP box shared with the same name as the others. I have deduced that the php_printer.dll relies upon the WAMP box's Print Spooler; shut it down and no printing happens. With all that said, I must admit our configuration (Windows 2000 Pro, Apache 1.3.27, PHP 4.3.4, MySQL 4.0.13-nt) does seem to crash every Sunday (when there are about 17+ stations running the checkin system and printing; we check in over 800+ unique children in over 4 services). Could it be that we need to move to Windows 2000 Server Installation? All of the errors/crashes seem to point to a spooler overload (we could potentially have over 10 print jobs being called at any one time..maybe Win2k Pro limit of 10 connections is causing this?).... Any help or info would be greatly apprecited. Thanks! -j ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26346 -- Edit this bug report at http://bugs.php.net/?id=26346&edit=1

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