<?php
$file="/parh/to/binary";
$fp = fopen($file, "rb");
$binary = fread($fp, filesize($file));
echo base64_encode($binary);
?>

 

--

轉自 https://gist.github.com/nolim1t/208993

arrow
arrow
    全站熱搜

    dizzy03 發表在 痞客邦 留言(0) 人氣()