Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

printer_list(3) [php man page]

PRINTER_LIST(3) 							 1							   PRINTER_LIST(3)

printer_list - Return an array of printers attached to the server

SYNOPSIS
array printer_list (int $enumtype, [string $name], [int $level]) DESCRIPTION
The function enumerates available printers and their capabilities. PARAMETERS
o $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 VALUES
Return an array of printers. EXAMPLES
Example #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)

Check Out this Related Man Page

xprehashprinterlist(1x) 												   xprehashprinterlist(1x)

NAME
xprehashprinterlist - Recomputes the list of available printers. SYNOPSIS
xprehashprinterlist [-v] [-h] DESCRIPTION
xprehashprinterlist causes all Xprint servers to recompute (update) their lists of available printers, and update the attributes for the printers. The intended usage of this tool is that a system administrator can run it after changing the printer topology. OPTIONS
-v generate verbose output -h | -? print usage ENVIRONMENT
XPSERVERLIST ${XPSERVERLIST} must be set, identifying the available Xprint servers. See Xprint(7) for more details. EXAMPLES
Update the list of available printers % xprehashprinterlist -v would print: Rehashing printer list on server 'meridian:34' NOTES
xprehashprinterlist rehashes all printer lists of all print servers. Alternatively xset rehashprinterlist may be used to rehash only the list of printers in one print server. SEE ALSO
Xprint(7), X11(7), xset(1x), xplsprinters(1x), xphelloworld(1x), xpxmhelloworld(1x), xpawhelloworld(1x), xpxthelloworld(1x), xpsimplehel- loworld(1x), Xserver(1x), Xprt(1x), libXp(3x), libXprintUtils(3x), libXprintAppUtils(3x), XmPrintShell(3x), XawPrintShell(3x), Xprint FAQ (http://xprint.mozdev.org/docs/Xprint_FAQ.html), Xprint main site (http://xprint.mozdev.org/) 8 October 2004 xprehashprinterlist(1x)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

quering unix boxes for attaced printers

Greetings All, I was wanting some info seeing i am a ms geek looking to go into UNIX if i want to query a UNIX box for info regarding printers, LPDs and such source how would i go about this !!!! All comments that would point me in the right direction would be most useful. Cheers (1 Reply)
Discussion started by: seekerO
1 Replies

2. Windows & DOS: Issues & Discussions

XP Pro: home network

having trouble with my home XP Network. I have 2 machine running xp but the server cant access or see the second computer. Both can ping each other and i have file and printer sharing installed. HD'S are sharded. Any ideas ? (2 Replies)
Discussion started by: perleo
2 Replies

3. UNIX for Dummies Questions & Answers

what about 'dtp' ?

I just wanna transfer a whole directory with files and subfoldes, which also include files....why Ken Thompson and AT&T (the originators of unix) didn't recognize that in the future not only 'one file' (!) should be transfered? why there's only a file transfer protocol and no directory transfer... (10 Replies)
Discussion started by: svennie
10 Replies

4. What is on Your Mind?

How to check for a directory during FTP from WinNT to HP-UNIX

(1 Reply)
Discussion started by: asifkhan
1 Replies

5. UNIX for Advanced & Expert Users

Password protect UNIX printers?

Is there a way to password protect a printer that is on a LAN network? Our security officer said our UNIX printers need to be password protected. Is this possible? I am running Solaris 7 and 8... Thanks in advanced for any suggestions. (4 Replies)
Discussion started by: rtoba
4 Replies

6. Windows & DOS: Issues & Discussions

Finding printers from a command prompt

Does anyone know how I can find printers from a dos prompt? I'm trying to create a batch file which cats the printers and their locations to another file which I will use later in the script. Maybe windows has a file from which I may read in this information? Thanks! (1 Reply)
Discussion started by: gseyforth
1 Replies

7. IP Networking

Ip Addresses With Hardware Change

I have 2 identical printers with the same IP on my network. One is only used as a backup for the primary printer and both are never on line at the same time. The goal was to always keep only 1 on and have an use the other printer as an immediate backup if necessary. But when I switch the cable I... (4 Replies)
Discussion started by: golfs4us
4 Replies

8. AIX

Printing across subnets (Xerox)

All, I have a pSeries 550 and several Xerox printers I need to print to from there. I can define the printers via the Xerox "xpadmin" utility for all the machines locally (in my building, .244.xxx subnet), but if I go to a different subnet (say .131.xxx) I can not apply any changes. I can... (1 Reply)
Discussion started by: kjbaumann
1 Replies

9. AIX

pass through printing help needed pls

Hi from a newbie We have set up 2 new IBM servers with AIX5.3 We have 3 Zebra printers with static IP adresses on their own print servers. I have set the up ok on the system using generic drivers, Zebra do not have a compatible driver for AIX. We are printing barcodes on these printers.... (2 Replies)
Discussion started by: RickP
2 Replies

10. Shell Programming and Scripting

Comparar 2 archivos y agregas lineas faltantes

Hi I have 2 files where i save the IP adress of many printers that work on UNIX, one of these files, which is the 'Main File', is on a server call PROD, and the other one is on a different server call Al. What I want, is to make a comparison between the 2 files, and then, copy the IPs that... (4 Replies)
Discussion started by: Athlon1
4 Replies

11. Shell Programming and Scripting

Help with script to create printers on unix

Herwith is script thus far, i need to delete the printers within my function, how can i achieve this #!/bin/ksh BIN=/usr/lbin LOCAL_FILE=`$BIN/lpstat -v >> sun5-printers.txt REMOTE_FILE=`rsh sun8 /usr/lbin/lpstat -v >> sun8-printers.txt awk 'BEGIN {while ( getline < "sun5-printers.txt")... (12 Replies)
Discussion started by: ggoliath
12 Replies

12. Shell Programming and Scripting

ip range addresses

I am trying to find a script that will generate all the ip addresses in particular range. Example: start: 41.0.0.0 end ip 41.1.1.2 32.32.35.3 to 32.32.36.0 Please help. Thanks (9 Replies)
Discussion started by: kkkk
9 Replies

13. AIX

AIX Bunch of printers queue creation script - HELP

I'd seek for help on how to create a bunch of printers in AIX 6.x or equal or above in one go – say like I have 35 printers to create in 4 different AIX Nodes every month – I currently create it manually like below:- How can I automatic this creation on all the 4-5 Nodes – not actually automatic... (3 Replies)
Discussion started by: shiv2001in
3 Replies

14. IP Networking

Help building a home network needed.

I have one computer with internet connection and printers that I would like to connect to another computer to use as a practice/test Server. I would like the server to access the other computer by a direct connection of some sort because I don't see the point of aquiring the hardward (ethernet... (5 Replies)
Discussion started by: theKbStockpiler
5 Replies

15. AIX

Help with /etc/qconfig file

Hi Initially our printers are directly connected to SAA. But now connections to the printers go through a VPN. Therefore it is necessary to modify the IPs declared on the server to go through the NATTED adress corresponding to the VPN, instead of the real address of the printer. We got a... (3 Replies)
Discussion started by: newtoaixos
3 Replies