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

RSS Icon Subscribe to comments

You need to login to post a comment.