Try this
It will open up the file and write over the location $addr with $ byte.
HalfaBee
<?
$addr = 0; // place of byte top change
$byte = chr( 0x11 ); // value to change it to
$fp = fopen( "file.mid","r+" );
if( $fp )
{
if( fseek( $fp , $addr ) )
fwrite( $fp , $byte , 1 );
}
fclose($fp);
?>