So, I've been working on a now playing page. What it does is looks through the currenttrack.txt file exported by multi-plugin, puts each line into an array, and then lets me print them.
I've been trying to get it to work, and, for the most part, it does. Problem is, the text file exported by Multi-Plugin is in unicode format. This makes things difficult on my end. Opening the file in notepad looks like a normal file- but in most other editors, it will show boxes between letters.
When I try to copy/paste information, it only displays the first letter of the selection.
Does anyone know how to import a file to be read as unicode, rather than ansi?
Heres the code I'm using to select the text file, and import it as an array.
<?php
$filename="C:program filesitunescurrenttrack.txt";
$lines = array();
$file = fopen($filename, "r");
while(!feof($file)) {
$lines[] = fgets($file, 4096);
}
?>
Any help would be appreciated, as this is quite a mystery
(and if anyone wants to take a look, it's here.)
Aqua-Soft Forums