NYCPHP Meetup

NYPHP.org

[nycphp-talk] printer_list

CHUN-YIU LAM chun_lam at hotmail.com
Tue Feb 4 20:48:08 EST 2003


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
Received: from parsec.nyphp.org ([66.250.131.26]) by 
mc8-f21.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 4 Feb 
2003 16:18:55 -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 h150IPoC038684for 
<chun_lam at hotmail.com>; Tue, 4 Feb 2003 19:18:52 -0500 (EST)(envelope-from 
null at nyphp.org)
X-Message-Info: dHZMQeBBv44lPE7o4B5bAg==
Message-Id: <200302050018.h150IPoC038684 at parsec.nyphp.org>
X-Paralist-Archived: <http://nyphp.org/list/paralist_archive.php?L_mid=2811>
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 00:18:55.0452 (UTC) 
FILETIME=[2B68B9C0:01C2CCAC]

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



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


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




More information about the talk mailing list