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; }
您最近使用了:
騰訊云 新老同享118元/年 2核2G4M300G月流量
阿里云 新老同享99元/年 2核2G3M帶寬不限流量
華為云 新用戶專享118元起 2核4G2M