PHP File to byteArray


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?
  2. $file = file_get_contents($_FILES['userfile']['tmp_name']);
  3. $byteArr = str_split($file);
  4. foreach ($byteArr as $key=>$val) { $byteArr[$key] = ord($val); }
  5. ?>

Report this snippet


Comments


You need to login to view comments.