使用fpdf库 [英] using fpdf library
问题描述
我在php中找到了一些pdf文件Geneartion程序. 当我重新配对时,出现以下错误
警告:require(/include/fpdf153/fpdf.php)[function.require]:失败 打开流:在目录中没有这样的文件或目录 C:\ xampp \ htdocs \ aks \ mikepdf.php,第57行
致命错误:require()[function.require]:需要打开失败 '/include/fpdf153/fpdf.php'(include_path ='.; C:\ xampp \ php \ pear \')在 C:\ xampp \ htdocs \ aks \ mikepdf.php,第57行
我认为fpdf.php已丢失.我已经在他们的网站上进行搜索,但是找不到英文版本.
有人可以给我提供英文版的完整链接吗?
当前,PHP正在C:\include\fpdf153\fpdf.php
中查找文件,因为它是绝对路径.
尝试将文件放入C:\xampp\htdocs\aks\include\fpdf153\
并使用以下语句:
require(include/fpdf153/fpdf.php
);
然后,它根据您当前的工作方式使用相对链接(我想是C:\xampp\htdocs\aks\
).而且应该可以.
i have found some pdf file geneartion program in php. When i reun it i get the following error
Warning: require(/include/fpdf153/fpdf.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\aks\mikepdf.php on line 57
Fatal error: require() [function.require]: Failed opening required '/include/fpdf153/fpdf.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\aks\mikepdf.php on line 57
I think the fpdf.php is missing. I have searched on their site but i could not find the english version.
can anyone provide me full link of english version?
Currently PHP is looking for the file in C:\include\fpdf153\fpdf.php
as it is an absolute path.
Try to put the file in C:\xampp\htdocs\aks\include\fpdf153\
and use the follwing statement:
require(include/fpdf153/fpdf.php
);
Then it uses a relative link based on your current working this (I guess it's C:\xampp\htdocs\aks\
). And it should work.
You can find more info in the PHP manual
这篇关于使用fpdf库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!