Network dot matrix printer printing with PHP [closed]

1

Good afternoon.

I'm trying to send a simple txt file to the network printer. The server is Windows, php 5.6 and is in a VPS. The printer is configured by VPN.

I've tried to install the php_printer dll, but PHP did not recognize the library.

If I send via CMD using the command below, it works:

Get-Content "file.txt" | Out-Printer \ Network \ Printer

However, executing this same command via exec in PHP, will not. I've tried using system, passthru, etc. .. nothing works.

Does anyone have any light for this case? Thank you in advance.

    
asked by anonymous 13.11.2018 / 18:29

0 answers