Sorry to be honest, but your PHP code really lacks of decent coding convention compared to your JS snippets, also that it would've made a lot more sense to use JS for the backend with a MongoDB/NoSQL
Anyhow good luck.
Since I am so bad at finding titles for my work, I therefore will give a random sub worth of $1 to a user, who can come up with the best name for my streaming app.
I will attach a poll with all the suggestions, and from there pick a "winner".
Need some inspiration? Try Brandbucket...
Then it's good it's not an audio streaming app I'm developing :D
#UPDATES
If all goes as planned, there will be released a beta version of the app the weekend after this one.
Adding tons of movies is easy, but it's boring, so what I am planning to do, is make some sort of request page for the...