1
什麼是PHP的C#(asuming我們打開一些地方(在服務器上)文件,而不是打開文件對話框什麼是PHP的C#ReadBytes(流長度)?
private const int HEADER_LENGTH = 13;
stream = File.OpenRead(openFileDialog.FileName);
header = ReadBytes(stream, HEADER_LENGTH);
,我們將能夠做這樣的事在PHP作爲下一步
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!.");
說到類常量,它們的定義類似於你的代碼http://pl.php.net/manual/en/language.oop5.constants.php – 2010-06-18 14:20:19