what I try to do is make a hex editor for files
ok, I have did this to a file:
$data = bin2hex(fred(fopen(lf2.exe, 'rb'), 1000000));
and then I replace some HEX things by other HEX strings.....
and now, I want to save these things into a file....
BUT, if I just save them, they will be strings rather binary codes!
even if I use
$data = decbin(hexdeg($data)));
and the $data is still bunch of strings......
so... anyway to make it into binary? so I could write and works?