I run an open source music website where users upload project files from different music creation applications. I have been trying to write a script that will extract useful information from the project files, like application used, version number, plugins etc.. The infomation I need from the file is delimited by Ä and Á. I have been trying to use fscanf to grab the strings with the information I need out of the file, but I cannot seem to get it to work. My code is something like this:
$filename = "some/file.dat";
$file = fopen($filename, "r");
while ($file_info = fscanf($file, "Ä%sÁ")) {
list ($version) = $file_info;
echo "$version<br>";
}
fclose($file);
However this is not really working. Any help would be greatly appreciated.
*I should add that I am viewing the files in a hex editor and that is how I know how the information I want is delimited.