note 99696 deleted from function.base64-decode by danbrown

From: Date: Tue, 31 Aug 2010 14:57:10 +0000
Subject: note 99696 deleted from function.base64-decode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-172200@lists.php.net to get a copy of this message
Note Submitter: james dot gordon at naturaldomainleasing dot com ---- 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)); ?>

« previous php.notes (#172200) next »