phpqrcode
phpqrcode copied to clipboard
Cannot modify header information - headers already sent by
Hello I insert QR code into my html which I render via phpwkhtlto pdf The PDF is not rendered and browser just show me QR code and on the page is a few errors.
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /mnt/databox/www/myweb/pdf/phpqrcode-master/qrvect.php:147) in <b>/mnt/databox/www/myweb/pdf/wkhtmltopdf/mikehaertl/php-tmpfile/src/File.php</b> on line <b>64</b><br />
<br />
page from where it is started:
<?php
ini_set("memory_limit", "128M");
ini_set('display_errors', '1');
error_reporting(E_ALL);
require __DIR__ . '/wkhtmltopdf/autoload.php';
require_once ('phpqrcode-master/qrlib.php');
use mikehaertl\wkhtmlto\Pdf;
$svg_QR_Code = QRcode::svg('PHP QR Code :)');
$pdf = new Pdf;
$pdf->addPage('
<html>
<head>
</head>
<body>
<div id="qr-picture">' .$svg_QR_Code. ' </div>
</body>
</html>
');
thank You for any help