function magic_bytes($path, $position = 0, $bytes = 4) { if (!file_exists($path)) { return null; } $handle = fopen($path, 'rb'); fseek($handle, $position); $bytes = bin2hex(fread($handle, $bytes)); fclose($handle); return $bytes; }
您最近使用了:
腾讯云 首年88元起 每日0点限时秒杀
阿里云 新老同享99元/年 2核2G3M带宽不限流量