> From: Ricardo J. Oliveira [mailto:rjoliveira@sapo.pt] > > Hi, > When I try to list my printers with the printer_list function with these > options PRINTER_ENUM_NETWORK | PRINTER_ENUM_REMOTE the array returned are > empty. Hi First the manual says that PRINTER_ENUM_NETWORK and PRINTER_ENUM_REMOTE work only on WinNt and Win2000. Then some question: have you defined the printer on the box where Apache run? May the user used by the Apache service to run access to that printer? About PHP, when I wrote my module to list the printers, I crashed PHP with some memory problem running printer_list(PRINTER_ENUM_LOCAL|PRINTER_ENUM_CONNECTIONS); so I changed the line into $lista1=printer_list(PRINTER_ENUM_LOCAL); $lista2=printer_list(PRINTER_ENUM_CONNECTIONS); $lista=array_merge($lista1,$lista2); and it worked (I hadn't so much time to understand what went wrong so I can't tell you if it was a PHP problem or mine), and now it list all local printers (lpt1, tcp/ip ports) and all networks printers (shared by other box). My configuration is: production environment, NT 4, Apache 1.3.27, Php 4.3.4 as CGI development environment, Win 2000 Pro, Apache 2.0.48, Php 4.3.4 as CGI Note that the manual says that PRINTER_ENUM_NETWORK | PRINTER_ENUM_REMOTE work only on WinNt and Win2000 Hope this help you Darvin -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php