Page 1 of 1

printer problem

PostPosted: 16. January 2010 11:10
by shaihulud1979
Hello
i'm coding a prog where i want an auto print system. So I want to first list my printers, but the function does not work.

The code below is a test to see how the function works, I tried without echo, doesn't work too. php_printer.dll is avalaible in xampp
Code: Select all
<html>
<body>

<?php
echo var_dump(printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED)); 
//$handle = printer_open("DYMO LabelWriter 400");
//printer_write($handle, "Texte à imprimer");
//printer_close($handle);
?>
</body>
</html>


Error message
Fatal error: Call to undefined function printer_list() in C:\xampp\htdocs\garage\test\index.php on line 5

I use
XAMPP pour Windows Version 1.6.6a

including
Apache HTTPD, MySQL, PHP, Perl, FileZilla FTP Server, phpMyAdmin, OpenSSL, Freetype, Webalizer, mod_perl, eAccelerator, mcrypt, SQLite, Mercury Mail Transport System, fake sendmail for windows, FPDF Class

Has somebody an idea how to help me ?

Re: printer problem

PostPosted: 16. January 2010 18:32
by Wiedmann
Code: Select all
Fatal error: Call to undefined function printer_list() in ...

php_printer.dll is avalaible in xampp

And also enabled in "php.ini"?