// see converter.php for copyright notices and explanation // These have been moved to converter.php // This file is no longer relevant. exit; function bin2txt_8bit($in){ // We need to strip the spaces, if this is padded data. // Also, remove any other characters, since binary doesn't have anything but 0/1. Duh. $in = preg_replace("/[^01]+/","",$in); $pcs = explode("\n", chunk_split($in,8)); #print "Pieces
" . print_r($pcs, TRUE) . ""; foreach ($pcs as $thispc){ #print "PC " . bindec($thispc) . "
" . print_r($pcs, TRUE) . ""; foreach ($pcs as $thispc){ #print "ord " . ord($thispc) . "