Query: printer_list
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PRINTER_LIST(3) 1 PRINTER_LIST(3) printer_list - Return an array of printers attached to the serverSYNOPSISarray printer_list (int $enumtype, [string $name], [int $level])DESCRIPTIONThe function enumerates available printers and their capabilities.PARAMETERSo $enumtype -$enumtype must be one of the following predefined constants: o PRINTER_ENUM_LOCAL: enumerates the locally installed printers. o PRINTER_ENUM_NAME: enumerates the printer of $name, can be a server, domain or print provider. o PRINTER_ENUM_SHARED: this parameter can't be used alone, it has to be OR'ed with other parameters, i.e. PRINTER_ENUM_LOCAL to detect the locally shared printers. o PRINTER_ENUM_DEFAULT: (Win9.x only) enumerates the default printer. o PRINTER_ENUM_CONNECTIONS: (WinNT/2000 only) enumerates the printers to which the user has made connections. o PRINTER_ENUM_NETWORK: (WinNT/2000 only) enumerates network printers in the computer's domain. Only valid if $level is 1. o PRINTER_ENUM_REMOTE: (WinNT/2000 only) enumerates network printers and print servers in the computer's domain. Only valid if $level is 1. o $name - Used with PRINTER_ENUM_NAME. o $level -$level sets the level of information request. Can be 1,2,4 or 5.RETURN VALUESReturn an array of printers.EXAMPLESExample #1 printer_list(3) example <?php /* detect locally shared printer */ var_dump(printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED)); ?> PHP Documentation Group PRINTER_LIST(3)
Related Man Pages |
---|
lpc(1b) - opensolaris |
xprehashprinterlist(1x) - suse |
disable(1) - hpux |
conv_lpd(1m) - sunos |
enable(1) - debian |
Similar Topics in the Unix Linux Community |
---|
quering unix boxes for attaced printers |
XP Pro: home network |
Finding printers from a command prompt |
Ip Addresses With Hardware Change |
pass through printing help needed pls |