sorry if i miss the topic but why are you checking this:
PHP Code:
if ($data == $data)
this is ALWAYS true. I don't know if the compiler checks this and ignores it but u don't need it!
You shoud'nt use PHP to refresh your page. Some tiny Javascript does this job far better but was said by FragFrog.
If you'r realy cool you can use AJAX to update the song without refreshing the whole site.
There are some realy cool frameworks which makes it realy easy to do this. I use prototype on my own:
http://www.prototypejs.org/
If you need help with that, ask google or Ragezone ;-)