Hey there! I have a variable containing some binary data. When I do echo strlen ($var) I get 20078, but when I try this:
$op = fopen ('file', 'wb');
fwrite ($op, $var);
fclose ($op);
the length of the file is only 20017! The first few binary characters are the same, and so are the last few (when I look at them in Notepad) but I have no idea how to tell which pieces of the file are different from the variable since its binary, not text.
Any help is greatly appreciated!
Thanks,
Jared