ok I found it on page 3, I tested and it didn't have any errors, although I have found better ways to get the artist/song from the server since then it should still work. You said the error is on line 299, but the script only has 293 lines so you may want to check to make sure there is nothing else in that file .. also I tested using php 5.4
Again it's really simple I am sure a more exp coder can easily do a lot better job
1. script pulls from the SHOUTcast DNAS the current track and writes it to a text file
2. checks every minute (or how ever long you choose to run the cron job) to see if the current song still matches the song in the text file.
3. when the song does change, the script sends the data to TuneIN and writes the new song to the text file, starting the process over again
Also I read in this thread that this would use a lot server resources, we have ours serving just over 100 tune in stations so each minute with no problems using the same script I posted in this thread a couple of years ago .. in fact our system is is listed on the Tune In API page, look for SHOUTcast Widgets near the middle
http://tunein.com/broadcasters/api/