如何在WAMP Server上安装pdflib [英] How to install pdflib on WAMP Server

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

问题描述

我想在我的wampserver2上安装pdflib.

I want to install pdflib on my wampserver2.

我已经下载了pdflib ,并且我设置了以下行:

I have downloaded pdflib and I've set the following line:

extension=php_pdflib.dll

在我的php.ini文件中,但仍然出现Call to undefined function pdf_new()错误.

in my php.ini file, but I'm still getting a Call to undefined function pdf_new() error.

推荐答案

您必须将libpdf_php.dll复制到php安装的扩展目录中(在phpinfo()输出中检查extension_dir).

You must copy the libpdf_php.dll to the extension directory of your php installation (check for extension_dir in your phpinfo() output).

还请注意使用与您的php版本和编译器匹配的PDFlib版本(您提到的下载中包含多个版本).

Also take care to use the version of PDFlib that matches your php version and compiler (multiple versions are included in the download you mentioned).

然后将extension=libpdf_php.dll添加到php.ini(您也可以在phpinfo()输出中找到它的位置,只需查找php.ini).

Then add extension=libpdf_php.dll to the php.ini (you can also find it's location listed in the phpinfo() output, just look for php.ini).

重新启动您的Web服务器,并检查您的phpinfo()中是否有"PDF"条目,如果是,那么恭喜您!

Restart your webserver and check if you have a "PDF" entry in your phpinfo() and if so, congratulations!

如果您想了解有关PDFlib及其在php中使用的更多详细信息,请务必查看

If you want more detailed information about PDFlib and it's use in php , be sure to check out the online php howto(a pdf link, of course) and also consult the documentation included in your download package.

这篇关于如何在WAMP Server上安装pdflib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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