問題描述
我有一個使用 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
這篇關于在哪里可以找到 php_printer.dll?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!