note 108036 added to pdf.examples-basic
| From: | matt at kynx dot org | Date: | Fri, 23 Mar 2012 16:42:39 +0000 |
| Subject: | note 108036 added to pdf.examples-basic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186793@lists.php.net to get a copy of this message | ||
Be careful with your Content-Length if you're using multi-byte function overloading
(http://www.php.net/manual/en/mbstring.overload.php). You will want to do:
<?php
$len = mb_strlen($buf, 'ASCII');
?>
Otherwise your PDF will be truncated and unreadable. Just cost me a sunny afternoon :-/
----
Server IP: 87.124.126.48
Probable Submitter: 81.171.145.217
----
Manual Page -- http://www.php.net/manual/en/pdf.examples-basic.php
Edit -- https://master.php.net/note/edit/108036
Del: integrated -- https://master.php.net/note/delete/108036/integrated
Del: useless -- https://master.php.net/note/delete/108036/useless
Del: bad code -- https://master.php.net/note/delete/108036/bad+code
Del: spam -- https://master.php.net/note/delete/108036/spam
Del: non-english -- https://master.php.net/note/delete/108036/non-english
Del: in docs -- https://master.php.net/note/delete/108036/in+docs
Del: other reasons-- https://master.php.net/note/delete/108036
Reject -- https://master.php.net/note/reject/108036
Search -- https://master.php.net/manage/user-notes.php