找出错误“FPDF 错误:流意外结束”,FPDF 类在文件夹/ FPDF/fpdf.php
中,但如果我这样做了,我会以这种方式连接 -
require ('/FPDF/fpdf.php');
然后一个错误PHP
致命错误:require() [function.require]: Failed opening required '../FPDF/fpdf.php' (include_path = '.:/usr/lib/php:/usr/local/lib/php') in/ home/u552896297/public_html/createPdfFromBase64.php 在第 20 行
告诉我如何附加另一个文件夹中的文件?
我试图以这种方式连接 -
require ($ _SERVER ['DOCUMENT_ROOT']. '/ FPDF / fpdf.php');
但在那之后,一般来说,并覆盖了警告和致命错误(((
警告:require () [function.require]: open_basedir 限制生效。文件(/usr/local/apache/htdocs/FPDF/fpdf.php)不在允许的路径(s)内:(/home/:/usr/lib/php:/tmp:/usr/share/locale) /home/u552896297/public_html/createPdfFromBase64.php 第20行
警告:require (/usr/local/apache/htdocs/FPDF/fpdf.php) [function.require]: failed to open stream: Operation not allowed in /home/u552896297/public_html/createPdfFromBase64.php on line 20
致命错误:require() [function.require]: Failed opening required '/usr/local/apache/htdocs/FPDF/fpdf.php' (include_path = '.:/usr/lib/php:/usr/local/lib /php ') 在/home/u552896297/public_html/createPdfFromBase64.php 第20行