C # readBytes (stream boyu,) için PHP nedir?

0 Cevap

Için C # PHP nedir (asuming biz dosyası yerine bir) sunucu (bazı lokal açmak OpenFileDialog

        private const int HEADER_LENGTH = 13;
        stream = File.OpenRead(openFileDialog.FileName);
        header = ReadBytes(stream, HEADER_LENGTH);

Ve biz bir sonraki adım olarak PHP böyle bir şey yapmak mümkün olacak

    private const byte SIGNATURE1 = 0x46;
    private const byte SIGNATURE2 = 0x4C;
    private const byte SIGNATURE3 = 0x56;
      if ((SIGNATURE1 != header[0]) || (SIGNATURE2 != header[1]) || (SIGNATURE3 != header[2]))
            throw new InvalidDataException("Not a valid FLV file!.");

0 Cevap