在PHP 5.6中打印文件(仍然)不可能?

I am using PHP 5.6 and to print something, I have to edit php.ini and include the php_printer.dll file. But there is no .dll fiile for PHP 5.6.

What I am trying to solve:

I want to connect the voucher-printer to the server/webpage. When a customer orders products, the order will be printed automaticly on the voucher-printer.

Are there other solutions? I have read, that some printers/voucher-printers can get E-Mails.

Many thanks in advance!

Many PECL extensions can be found on this site, but you need to match PHP version, platform and compiler of the extension to your PHP file.

http://windows.php.net/downloads/pecl/releases/

It seems there was a "printer" extension on PECL a very long time ago. You may find windows versions of it somewhere, but most likely this extensian is dead.

http://pecl.php.net/package/printer

The top three lines of phpinfo() contain your version information. A small sample from my instance:

  • System: Windows NT 6.2 build 9200 (Windows 8.1 Home Premium Edition) i586
  • Build Date: Jul 23 2014 14:58:09
  • Compiler: MSVC11 (Visual C++ 2012)
  • Architecture: x86

I also was looking for the same hope you have solved it.

But there are no answer, so here is the link where I found php_printer.dll for PHP 5.6, and it worked for me.

https://github.com/gimjudge/php