I'm using php_printer.dll to develop intranet application which can print documents using printers shared in the network.

So to get all the printers attached in the network.I used.

a) print_r(printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED));
but it does not return any printers.But if I use

b) print_r(printer_list(PRINTER_ENUM_LOCAL));
it gives printers shared in the network.

Upto I know.. Code a) is the right way to do it.

Please help me to understand it.

Futher Info.
PHP 5.2.8
Apache 2.2

looking forward for the solution..