NYCPHP Meetup

NYPHP.org

[nycphp-talk] printer_list

Michael Welsh welsh_michael at hotmail.com
Tue Feb 4 22:57:45 EST 2003


no


end of message --------------------------------




----Original Message Follows----
From: "CHUN-YIU LAM" <chun_lam at hotmail.com>
Reply-To: talk at nyphp.org
To: NYPHP Talk <talk at nyphp.org>
Subject: Re: [nycphp-talk] printer_list
Date: Tue,  4 Feb 2003 22:43:34 -0500
Received: from parsec.nyphp.org ([66.250.131.26]) by 
mc8-f11.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 4 Feb 
2003 19:43:49 -0800
Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by 
parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h153hYo4043992for 
<welsh_michael at hotmail.com>; Tue, 4 Feb 2003 22:43:48 -0500 
(EST)(envelope-from null at nyphp.org)
X-Message-Info: dHZMQeBBv44lPE7o4B5bAg==
Message-Id: <200302050343.h153hYo4043992 at parsec.nyphp.org>
X-Paralist-Archived: <http://nyphp.org/list/paralist_archive.php?L_mid=2817>
X-List-Software: Paralist 0.6
List-ID: <nyphptalk.nyphp.org>
List-Owner: <mailto:listmaster at nyphp.org>
List-Archive: <http://nyphp.org/list/paralist_archive.php?L_lid=1>
List-Subscribe: <http://nyphp.org/list/>
List-Unsubscribe: <http://nyphp.org/list/>
Organization: New York PHP
X-Mailer: Paramail 0.5
Return-Path: null at nyphp.org
X-OriginalArrivalTime: 05 Feb 2003 03:43:49.0574 (UTC) 
FILETIME=[CB46DE60:01C2CCC8]

Are you doing this command-line?

Matthew




----Original Message Follows----
From: "Michael Welsh" <welsh_michael at hotmail.com>
Reply-To: talk at nyphp.org
To: NYPHP Talk <talk at nyphp.org>
Subject: Re: [nycphp-talk] printer_list
Date: Tue,  4 Feb 2003 22:38:35 -0500
Received: from parsec.nyphp.org ([66.250.131.26]) by
mc3-f35.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 4 Feb
2003 19:39:00 -0800
Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by
parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h153cZoC043302for
<chun_lam at hotmail.com>; Tue, 4 Feb 2003 22:38:59 -0500 (EST)(envelope-from
null at nyphp.org)
X-Message-Info: dHZMQeBBv44lPE7o4B5bAg==
Message-Id: <200302050338.h153cZoC043302 at parsec.nyphp.org>
X-Paralist-Archived: <http://nyphp.org/list/paralist_archive.php?L_mid=2816>
X-List-Software: Paralist 0.6
List-ID: <nyphptalk.nyphp.org>
List-Owner: <mailto:listmaster at nyphp.org>
List-Archive: <http://nyphp.org/list/paralist_archive.php?L_lid=1>
List-Subscribe: <http://nyphp.org/list/>
List-Unsubscribe: <http://nyphp.org/list/>
Organization: New York PHP
X-Mailer: Paramail 0.5
Return-Path: null at nyphp.org
X-OriginalArrivalTime: 05 Feb 2003 03:39:00.0456 (UTC)
FILETIME=[1EF2F680:01C2CCC8]

Thank you for the swift response Matthew, but, maybe I wasn't clear.  Or
perhaps you answered a little too swiftly.

As described:
<<< printer_list -- Return an array of printers attached to the server
Description
array printer_list ( int enumtype [, string name [, int level]])

The function enumerates available printers and their capabilities. level
sets the level of information request.>>>

I was hoping someone had some success with this and could share.
Michael


end of message --------------------------------

----Original Message Follows----
From: "CHUN-YIU LAM" <chun_lam at hotmail.com>
Reply-To: talk at nyphp.org
To: NYPHP Talk <talk at nyphp.org>
Subject: Re: [nycphp-talk] printer_list
Date: Tue,  4 Feb 2003 20:48:11 -0500

The reason you can not do this is simple.  PHP runs on the server side not
client side.

Matthew

----Original Message Follows----
From: "Michael Welsh" <welsh_michael at hotmail.com>
Reply-To: talk at nyphp.org
To: NYPHP Talk <talk at nyphp.org>
Subject: [nycphp-talk] printer_list
Date: Tue,  4 Feb 2003 19:18:25 -0500

All,

I'm trying to send output directly to a printer without the user clicking
File>Print on their browser.  I'm using PHP Version 4.2.2.

I've looked it up online
http://www.php.net/manual/en/function.printer-list.php and even 'google'd
it, but didn't find much.

Has anyone used this?  I couldn't get it to return anything on a windows or
linux server running Apache:  var_dump( printer_list(PRINTER_ENUM_LOCAL |
PRINTER_ENUM_NETWORK) );

Am I on the right track?  Any feedback would be great.

Michael

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail






_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail






_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail






_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail



--- Unsubscribe at http://nyphp.org/list/ ---


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the talk mailing list