note 99696 added to function.base64-decode
| From: | james dot gordon at naturaldomainleasing dot com | Date: | Tue, 31 Aug 2010 09:49:05 +0000 |
| Subject: | note 99696 added to function.base64-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172193@lists.php.net to get a copy of this message | ||
Re:martinstaemmler at gmx dot net
I was having the same problem, but where you cut the string in the middle of bit-patterns so i kept
getting errors in my resulting $decoded
since the bit patten is 6 long, the numbers need to be factors of 6.
<?php
$decoded = "";
for ($i=0; $i < ceil(strlen($encoded)/300); $i++)
$decoded = $decoded . base64_decode(substr($encoded,$i*300,300));
?>
----
Server IP: 69.147.83.197
Probable Submitter: 86.178.25.102
----
Manual Page -- http://www.php.net/manual/en/function.base64-decode.php
Edit -- https://master.php.net/note/edit/99696
Del: integrated -- https://master.php.net/note/delete/99696/integrated
Del: useless -- https://master.php.net/note/delete/99696/useless
Del: bad code -- https://master.php.net/note/delete/99696/bad+code
Del: spam -- https://master.php.net/note/delete/99696/spam
Del: non-english -- https://master.php.net/note/delete/99696/non-english
Del: in docs -- https://master.php.net/note/delete/99696/in+docs
Del: other reasons-- https://master.php.net/note/delete/99696
Reject -- https://master.php.net/note/reject/99696
Search -- https://master.php.net/manage/user-notes.php