printer problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

printer problem

Postby shaihulud1979 » 16. January 2010 11:10

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 ?
shaihulud1979
 
Posts: 8
Joined: 16. January 2010 11:01
Operating System: Windows 7

Re: printer problem

Postby Wiedmann » 16. January 2010 18:32

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"?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 147 guests