PHP Server Side Printing Ubuntu Server

后端 未结 3 1183
北荒
北荒 2021-01-19 04:33

I have been all over stack looking at what is required to do this and have wound up being slightly confused.

Lets get one thing straight this is a local based intra-

3条回答
  •  再見小時候
    2021-01-19 05:12

    Use PHP::PRINT::IPP

    It is the most secure and easiest way for printing from Web using PHP. Here you don't have to enable exploitable php functions like exec(), shell_exec() etc.

    Basic Usage

     setHost("localhost");
      $ipp->setPrinterURI("/printers/epson");
      $ipp->setData("./testfiles/test-utf8.txt"); // Path to file.
      $ipp->printJob();                                                          
    ?>
    

    Reference

提交回复
热议问题