在 wamp 服务器上安装 php_printer [英] installing php_printer on wamp server

查看:35
本文介绍了在 wamp 服务器上安装 php_printer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在搜索如何为 wamp 服务器安装 php_printer.dll,但没有任何结果.也许,有人知道如何安装该分机吗?基本上,我正在尝试使用 php printer 功能,我听说我需要那个扩展.我试过 http://www.issociate.de/board/goto/751941/Call_to_undefined_function_printer_open().html 安装在 wamp 服务器上,但仍然在网页中给我错误?我在 php.ini 中添加了 extension: php_printer.dll

Ive been googling around on how to install the php_printer.dll for wamp server, nothing came up. Perhaps, anyone know how to install that ext? Basically, im trying to use php printer function and i need that extension as i heard. i tried http://www.issociate.de/board/goto/751941/Call_to_undefined_function_printer_open().html to install on wamp server, but still give me error in the webpage? i added the extension: php_printer.dll in php.ini

testing code:
<?php
$filename = "test page";
///////
ob_start();
include $filename;
$contents = ob_get_contents();
ob_end_clean();
///////
$handle = printer_open("HP80AA62");
printer_set_option($handle, PRINTER_MODE, "raw"); 
printer_write($handle,$contents);
printer_close($handle);
?>

推荐答案

扩展名:php_printer.dll

你应该使用

extension=php_printer.dll

另外,需要注意的是,php_printer.dll 的版本很多,大部分都不能在 Windows 平台上运行.

Also, be noticed that there are plenty of versions of php_printer.dll and most of them don't work on Windows platform.

尝试获得新的:pecl-5.2.6-Win32.zip.

另外,考虑这个行格式 PHP:打印机手册

Also, consider this line form PHP: Printer manual

Windows 用户必须启用php_printer.dll 里面的 php.ini 中为了使用这些功能.一个动态链接库这个 PECL 扩展目前是不可用.

Windows users must enable php_printer.dll inside of php.ini in order to use these functions. A DLL for this PECL extension is currently unavailable.

我刚刚尝试在 Wamp (Windows XP) 上启用它,但它不起作用.

I've just tried to enable it on Wamp (Windows XP) and it doesn't work.

这篇关于在 wamp 服务器上安装 php_printer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆