|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » preg_match() » fopen() » header() » getimagesize() » preg_match_all() » session_start() » htmlspecialchars() » ob_start() » ob_flush() » strstr() » flush() » strpos() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » ereg_replace() » urlencode() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: printer_list (PECL) printer_list -- Return an array of printers attached to the serverDescriptionarray printer_list ( int enumtype [, string name [, int level]] )The function enumerates available printers and their capabilities. level sets the level of information request. Can be 1,2,4 or 5. enumtype must be one of the following predefined constants:
PRINTER_ENUM_LOCAL : enumerates the locally installed printers. PRINTER_ENUM_NAME : enumerates the printer of name , can be a server, domain or print provider. 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. PRINTER_ENUM_DEFAULT : (Win9.x only) enumerates the default printer. PRINTER_ENUM_CONNECTIONS : (WinNT/2000 only) enumerates the printers to which the user has made connections. PRINTER_ENUM_NETWORK : (WinNT/2000 only) enumerates network printers in the computer's domain. Only valid if level is 1. PRINTER_ENUM_REMOTE : (WinNT/2000 only) enumerates network printers and print servers in the computer's domain. Only valid if level is 1. Example 1. printer_list() example <?php /* detect locally shared printer */ var_dump(printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED)); ?> |