在哪里可以找到 php_printer.dll?
我有一个使用 php_printer 扩展的类,但我在任何地方都找不到它,而且在 php.net 上它说它目前不可用.我用谷歌搜索了它,但我从其他网站下载的所有内容都没有效率.在我看来它已经过时了.我复制了extensions文件夹下的.dll文件,在php.ini里面设置了配置,但是还是不能使用它的内置函数.我安装的是PHP 5.3.1.
I have a class that makes use of the php_printer extension but I can't find it anywhere and at php.net it says it's currently unavailable. I googled it, but all I downloaded from other sites was not efficient. It seemed to me it was outdated. I copied the .dll file in the extensions folder and set the configuration in php.ini but I still couldn't use its built-in functions.I have PHP 5.3.1 installed.
推荐答案
那你 google 不太好.其他地方仍然有预编译二进制文件的存储库:
Then you did not google very well. There still are repositories of precompiled binaries elsewhere:
- https://github.com/maryo/php-5.5-windows-extensions
- http://windows.php.net/下载/pecl/snaps/printer/0.1.0-dev/
http://downloads.php.net/pierre/
仅仅说它不起作用是不够的.我知道在 Windows 上从源代码编译很费力(pecl install printer
给出了正确的编译器设置),但至少在编辑 php.ini<后在命令行上运行 PHP 解释器/代码>.它会在链接错误的情况下为您提供有用的错误消息,或者如果您编辑了错误的配置文件,则不会.(细节太少,无法回答.)
Just saying it does not work is insufficient. I understand that compiling from source is effortful on Windows (pecl install printer
given a proper compiler setup), but at the very least run the PHP interpreter on the commandline after editing the php.ini
. It would give you a useful error message in case of linking errors, or none in case you edited the wrong config file. (Too few details to answer.)
另见:PHP 5.4.7 编译 ext php_printer
相关文章