Bug #18015: Printer Function

From: Date: Thu, 27 Jun 2002 10:15:50 +0000
Subject: Bug #18015: Printer Function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12222@lists.php.net to get a copy of this message
From: hjcarlo@yahoo.de Operating system: Win2000 PHP version: 4.2.1 PHP Bug Type: Unknown/Other Function Bug description: Printer Function 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 bug report at http://bugs.php.net/?id=18015&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18015&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18015&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18015&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18015&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18015&r=support Expected behavior: http://bugs.php.net/fix.php?id=18015&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18015&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18015&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18015&r=globals

« previous php.bugs (#12222) next »