Below I have this PHP script and a folder called "songs" on my host. What my script does is it access the mp3 music in my songs folder and shuffles them. Then creates an array of links to each song that outputs through $body. The problem I seem to be having is when I test this script on my iPhone app, it outputs all the links in the songs folder in my console and the music begins to stream. The first link I would think would be the first song that is streaming but it's not. What is wrong with my code? Below is my my PHP script.