note 48741 added to function.echo
| From: | peter dot albertsson at spray dot se | Date: | Wed, 05 Jan 2005 22:55:06 +0000 |
| Subject: | note 48741 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82804@lists.php.net to get a copy of this message | ||
It appears that echo (or print) does not work with binary strings, so this is my workaround for
that:
$fp = tmpfile();
fwrite($fp, $binary_str);
rewind($fp);
fpassthru($fp);
fclose($fp);
Neither could I write the binary string to php://ouput.
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48741
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48741&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48741&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48741&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48741&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48741&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48741&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48741&report=yes
Search -- http://master.php.net/manage/user-notes.php