Heylo, thanks for that... threw up an error though... I broke it didn't I:rolleyes:
Parse error: parse error, unexpected $end in C:\CN Radio\CityBeat\MediaSystemProfessional\what.php on line 38
<?php
$myFile = "NowPlaying/citybeat.txt";
$fh = fopen($myFile, 'r');
$thedata = fgets($fh);
fclose($fh);
$thedata = preg_split('/\s{2,}/ ',$thedata);
$Artist = ucwords(strtolower(str_replace('_',' ',$thedata[0])));
$Title = ucwords(strtolower(str_replace('_',' ',$thedata[1])));
echo $Artist." - ".$Title;
if((trim($artist, 2) == '"") && (trim($Title, 2) == ""))
{
$Title = "Citybeat 96.7FM";
}
?>