久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<small id='BtfLt'></small><noframes id='BtfLt'>

        • <bdo id='BtfLt'></bdo><ul id='BtfLt'></ul>
        <i id='BtfLt'><tr id='BtfLt'><dt id='BtfLt'><q id='BtfLt'><span id='BtfLt'><b id='BtfLt'><form id='BtfLt'><ins id='BtfLt'></ins><ul id='BtfLt'></ul><sub id='BtfLt'></sub></form><legend id='BtfLt'></legend><bdo id='BtfLt'><pre id='BtfLt'><center id='BtfLt'></center></pre></bdo></b><th id='BtfLt'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='BtfLt'><tfoot id='BtfLt'></tfoot><dl id='BtfLt'><fieldset id='BtfLt'></fieldset></dl></div>

      1. <tfoot id='BtfLt'></tfoot>
        <legend id='BtfLt'><style id='BtfLt'><dir id='BtfLt'><q id='BtfLt'></q></dir></style></legend>
      2. 使用 PHP 將數據打印到打印機

        Printing data to printer using PHP(使用 PHP 將數據打印到打印機)

        <tfoot id='JJKcv'></tfoot>
          <bdo id='JJKcv'></bdo><ul id='JJKcv'></ul>
        • <legend id='JJKcv'><style id='JJKcv'><dir id='JJKcv'><q id='JJKcv'></q></dir></style></legend>

            <small id='JJKcv'></small><noframes id='JJKcv'>

              <tbody id='JJKcv'></tbody>
            <i id='JJKcv'><tr id='JJKcv'><dt id='JJKcv'><q id='JJKcv'><span id='JJKcv'><b id='JJKcv'><form id='JJKcv'><ins id='JJKcv'></ins><ul id='JJKcv'></ul><sub id='JJKcv'></sub></form><legend id='JJKcv'></legend><bdo id='JJKcv'><pre id='JJKcv'><center id='JJKcv'></center></pre></bdo></b><th id='JJKcv'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='JJKcv'><tfoot id='JJKcv'></tfoot><dl id='JJKcv'><fieldset id='JJKcv'></fieldset></dl></div>

                • 本文介紹了使用 PHP 將數據打印到打印機的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個問題困擾了我至少 3 周.我需要使用 php 將一些數據打印到打印機.我將數據保存到 $print_output 變量中,我知道我的數據很好,因為當我通過電子郵件發送它時,它顯示了應該顯示的所有內容.

                  I have a question that has been troubling me for at least 3 weeks now. I need to print some data to a printer using php. I have data saved into a $print_output variable, and I know my data is good because when I send it via email, it shows everything that is supposed to be shown.

                  好吧,我試著寫了這段代碼,我以為我可以測試它,但不確定它是否會起作用.

                  Well, I tried writing this code, where I thought I could test it but wasn't sure if it would have even worked.

                  $handle = printer_open("\\192.168.1.33_4\Printer_Office");
                  printer_set_option($handle, PRINTER_MODE, "raw"); 
                  printer_write($handle,$print_output); 
                  printer_close($handle); 
                  

                  好吧,結果我沒有安裝 php_printer.dll 擴展,我被告知不要重新編譯 php 來添加它.

                  Well, turns out I don't have php_printer.dll extension installed and I was told not to re-compile php to add it.

                  我想要做的只是將存儲在 $print_output 中的數據打印到同一網絡上的打印機.我不想使用 javascript 函數 window.print() 因為我無法彈出打印對話屏幕.

                  What I'd like to do is simply print out the data that is stored in $print_output to a printer on my same network. I don't want to use the javascript function window.print() because I can't have a print dialogue screen pop up.

                  有沒有人有任何信息可以為我指明正確的方向?或者另一種直接將少量數據打印到打印機而不使用 php 的 printer_open 函數的方法?

                  Does anyone have any information that can point me in the right direction? Or another way to simply print a small amount of data directly to the printer without using php's printer_open function?

                  推薦答案

                  對于遇到同樣問題的任何人,我發現我可以簡單地使用套接字編程推送數據,如下所示.下面的ip地址是我打印機的ip地址.如果您愿意,您可以通過 telnet 連接到您的打印機,以確保連接能夠正常工作.

                  For anyone who is having the same trouble, I figured out I can simply push the data using socket programming as follows. The ip address below is my printer's ip address. You can telnet into your printer to make sure the connection works beforehand if you'd like.

                  if(isset($_POST['order'])){
                  $print_output= $_POST['order'];
                  }
                  try
                  {
                      $fp=pfsockopen("192.168.1.33", 9100);
                      fputs($fp, $print_output);
                      fclose($fp);
                  
                      echo 'Successfully Printed';
                  }
                  catch (Exception $e) 
                  {
                      echo 'Caught exception: ',  $e->getMessage(), "
                  ";
                  }
                  

                  這篇關于使用 PHP 將數據打印到打印機的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)

                    <tbody id='LxiXi'></tbody>
                • <legend id='LxiXi'><style id='LxiXi'><dir id='LxiXi'><q id='LxiXi'></q></dir></style></legend>

                    • <i id='LxiXi'><tr id='LxiXi'><dt id='LxiXi'><q id='LxiXi'><span id='LxiXi'><b id='LxiXi'><form id='LxiXi'><ins id='LxiXi'></ins><ul id='LxiXi'></ul><sub id='LxiXi'></sub></form><legend id='LxiXi'></legend><bdo id='LxiXi'><pre id='LxiXi'><center id='LxiXi'></center></pre></bdo></b><th id='LxiXi'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LxiXi'><tfoot id='LxiXi'></tfoot><dl id='LxiXi'><fieldset id='LxiXi'></fieldset></dl></div>
                        <bdo id='LxiXi'></bdo><ul id='LxiXi'></ul>
                      • <tfoot id='LxiXi'></tfoot>
                        1. <small id='LxiXi'></small><noframes id='LxiXi'>

                            主站蜘蛛池模板: 91视视频在线观看入口直接观看 | 亚洲成人久久久 | 瑟瑟视频在线看 | 中文字幕二区 | 日韩成人精品在线 | 一区视频在线 | 99在线资源 | 在线黄色网 | 久久综合狠狠综合久久 | 亚洲永久免费观看 | 欧美最猛黑人xxxⅹ 粉嫩一区二区三区四区公司1 | 国产激情91久久精品导航 | 日韩在线视频一区二区三区 | xxxcom在线观看 | 极品电影院 | www.色综合| 精品国产第一区二区三区 | 日本视频在线播放 | 成人免费视频网址 | 欧美国产视频 | 可以免费观看的av | 久久在线精品 | 天堂一区二区三区 | 国产一区| 成人免费淫片aa视频免费 | 国产色视频网站 | 久久久av中文字幕 | 丝袜美腿一区二区三区动态图 | 国产在线第一页 | 久www| 国产日韩欧美 | 伦理午夜电影免费观看 | 色桃网| 亚洲国产成人在线视频 | 免费成人在线网站 | 国产 日韩 欧美 中文 在线播放 | 成人高潮片免费视频欧美 | 欧美日韩国产精品一区二区 | 日韩高清中文字幕 | 国产高清视频一区 | 一级做a爰片性色毛片视频停止 |