Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/251.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 以菲律宾比索计算,$mpdf->;输出();在Paypal通知功能中不工作_Php - Fatal编程技术网

Php 以菲律宾比索计算,$mpdf->;输出();在Paypal通知功能中不工作

Php 以菲律宾比索计算,$mpdf->;输出();在Paypal通知功能中不工作,php,Php,我想在paypal通知功能中制作一个PDF,即使我也尝试用文件内容跟踪代码,但我无法获得解决方案,请帮助我 function paypalNotificationdemo() { all other Code for paypal......................... $this->Mpdf->init(); $html = ' <div style="text-align:center; margin-left:6

我想在paypal通知功能中制作一个PDF,即使我也尝试用文件内容跟踪代码,但我无法获得解决方案,请帮助我

function paypalNotificationdemo() {

    all other Code for paypal......................... 

    $this->Mpdf->init();

    $html = '

        <div style="text-align:center; margin-left:67%">
            Hello World
        </div> ';

     ..... OTHER HTML CODE FOR PDF ......... 

     include("../mpdf.php");
     $mpdf=new mPDF('','', 0, 'Calibri', 0, 0, 0, 0, 0, 0, 'L');
     $filename= "PDFNAME".".pdf";

     $mpdf->WriteHTML($html);

     // HERE THIS FILE PUT CONTENT IS WORKING
     file_put_contents("pdferror.txt",print_r(error_get_last(), true));

     // **BELOW LINE IS NOT WORKING IN PAYPAL NOTIFICATION BUT IN OTHER FUNCTION IT IS WORK PROPERLY**
     $mpdf->Output();

     // BUT HERE IT IS NOT WORKING  SO I CAN'T UNDERSTAND THE PROBLEM BECAUSE I CAN'T GET ANY ERROR AND I CAN'T TRACE CODE AFTER ABOVE $mpdf->Outout()
     file_put_contents("pdferror.txt",print_r(error_get_last(), true));

}
函数paypalNotificationdemo(){
paypal的所有其他代码。。。。。。。。。。。。。。。。。。。。。。。。。
$this->Mpdf->init();
$html='1
你好,世界
';
…PDF的其他HTML代码。。。。。。。。。
包括(“../mpdf.php”);
$mpdf=新的mpdf('','0','Calibri',0,0,0,0,0,'L');
$filename=“PDFNAME”。.pdf”;
$mpdf->WriteHTML($html);
//在这里,此文件放置内容正在工作
文件内容(“pdferor.txt”,print_r(error_get_last(),true));
//**下一行在PAYPAL通知中不工作,但在其他功能中工作正常**
$mpdf->Output();
//但在这里它不起作用,所以我不能理解这个问题,因为我不能得到任何错误,也不能跟踪$mpdf->Outout()以上的代码
文件内容(“pdferor.txt”,print_r(error_get_last(),true));
}

检查“mpdf.php”是否正确包含。感谢您的朋友给予反馈。。。是的,它被正确地包含,这段pdf代码已经在其他函数中运行,但我想在paypal nocification函数中实现这段代码,这样在paypal函数中它就不会特别工作$mpdf->Output();这一行是创建一个PDF,即使我也尝试了其他插件html2pdf,但同样的问题,它在其他功能中工作,但在贝宝通知功能中不工作,同样的问题是obj->output()函数