Code: Select all
$dataString = file_get_contents( $uploadedFile );Code: Select all
function asc2bin ($temp) {
$data = array();
$len = strlen($temp);
for ($i=0; $i<$len; $i++)
$data[$i]=sprintf( "%08b", ord( substr( $temp, $i, 1 ) ) );
return $data;
}I've been banging my head against a wall here, and I suspect that there's a really easy way to do this that I'm missing. If someone out there has done this, or knows how, I would *really* appreciate the help!