Bug #18015 Updated: Printer Function

From: Date: Thu, 27 Jun 2002 10:20:43 +0000
Subject: Bug #18015 Updated: Printer Function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12224@lists.php.net to get a copy of this message
 ID:               18015
 Updated by:       sander@php.net
 Reported By:      hjcarlo@yahoo.de
-Status:           Open
+Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: Win2000
 PHP Version:      4.2.1
 New Comment:

Can you do post the output of the following here:
var_dump(printer_list(PRINTER_ENUM_LOCAL));


Previous Comments:
------------------------------------------------------------------------

[2002-06-27 06:15:49] hjcarlo@yahoo.de

Hello, 
i have some problem with the "printer" function. 
I have installed an WAMP system with, PHP 4.2.1 
i have added the "php_printer.dll". 
when i want to connect to a printer i receive the message, 

Warning: couldn't connect to the printer [h#Ž/htm] in
c:\apache\htdocs\printer_1.php on line 4 
------- 
if ($submit) { 

$handle = printer_open(); 
printer_write($handle, $text); 
printer_close($handle); 

} 
------------------ 
When i try to list the attached printers with 
---------------------- 
if ($auflisten) { 
PRINTER_ENUM_SHARED); 
$var_dump = printer_list(PRINTER_ENUM_LOCAL); 
while(list($key, $value) = each($var_dump)) 
{ 
echo "$key, $value"; 
} 
} 
----------------- 
i only receive 
0, Array1, Array2, Array3, Array4, Array5, Array6, Array 

what is the problem ? 

Is it a bug with PHP 4.2.1
In a older version of PHP i had no problems

thanks a lot 
Jack



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=18015&edit=1



Thread (7 messages)

« previous php.bugs (#12224) next »