简体   繁体   English

PHP 5.3:如何添加PDFlib?

[英]PHP 5.3: how to add PDFlib?

I recently upgraded my Linux server from Apache 2.1 to 2.4 and PHP 5.2 to 5.3. 我最近将我的Linux服务器从Apache 2.1升级到2.4,将PHP 5.2升级到5.3。 Previously I was using pdf.so from PDFlib fine, but when I tried to install it, as downloaded from here, 以前我在PDFlib上使用pdf.so很好,但是当我尝试安装它时,从这里下载,

http://www.pdflib.com/download/free-software/pdflib-lite-7/ http://www.pdflib.com/download/free-software/pdflib-lite-7/

PHP failed to load the module as it was compiled in for PHP 5.3. PHP无法加载模块,因为它是为PHP 5.3编译的。 This install was done using the newest version of PDFlib that I could find, 9.0.2. 这个安装是使用我能找到的最新版PDFlib 9.0.2完成的。

Anyone know whether this is possible? 有谁知道这是否可能? I've already got things coded in PHP for PDFlib and prefer not to use another library unless the commands are the same. 我已经在PHP中为PDFlib编写了代码,除非命令相同,否则不想使用其他库。

UPDATE UPDATE

Has anyone successfully used PDF Lite with PHP 5.3? 有没有人成功使用PDF Lite和PHP 5.3?

You must compile it. 你必须编译它。 Currently no build is available for PHP 5.3 . 目前没有适用于PHP 5.3

On the Download-Site, READ the info: 在下载站点上, 阅读信息:

PDFlib Lite source code must be compiled to generate a usable library. PDFlib GmbH does not offer precompiled (binary) versions of PDFlib Lite.

If you have compile errors, check out the error logs - What say it? 如果您有编译错误, 请查看错误日志 - 说什么? Yep, i think you need additional sources for compiling (mostly). 是的,我认为你需要额外的编译源(大多数)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM