i've made my own php site to stream my media, but more than that. i've got a mysql database setup that holds:
name, views, url, artist, category
and on the home page i've got the pages for different categories (music, movies, tv, music videos, videos) and i've got a stats page.
when you go to one of the pages, it lists the links to the files, ordered by views. (most views first).
when you click on a link, it goes to another php file that i have setup. the link had the id of that file, and so it pulls all the info from the database with that id. it then plays the file, shows the title and views, and i have a navigation bar at the top of the page.
basically what i'm trying to decide on is 2 things:
1. paging. right now i've got quite a few music files. you have to scroll down pretty far. how can i setup some sort of paging? i know how to use the limit function in mysql, so i could sort by views, and limit 20 or so, but when i click go to next page, how can i pick up from where it left off?
2. user system. right now i have manually add files to the database and folder on the server. should i setup a upload method with user/pass? i don't want people to be able to upload whatever to my site (just in case someone finds it). i know a little bit about sessions, but i'm not so sure i trust it (i've got some other sites with sessions, i'm not so sure they're that secure)
and any other recommendations. keep in mind this is really for just my personal use. but it does look somewhat similar to youtube (on the page where you play the media at least)
attached are some screenshots
name, views, url, artist, category
and on the home page i've got the pages for different categories (music, movies, tv, music videos, videos) and i've got a stats page.
when you go to one of the pages, it lists the links to the files, ordered by views. (most views first).
when you click on a link, it goes to another php file that i have setup. the link had the id of that file, and so it pulls all the info from the database with that id. it then plays the file, shows the title and views, and i have a navigation bar at the top of the page.
basically what i'm trying to decide on is 2 things:
1. paging. right now i've got quite a few music files. you have to scroll down pretty far. how can i setup some sort of paging? i know how to use the limit function in mysql, so i could sort by views, and limit 20 or so, but when i click go to next page, how can i pick up from where it left off?
2. user system. right now i have manually add files to the database and folder on the server. should i setup a upload method with user/pass? i don't want people to be able to upload whatever to my site (just in case someone finds it). i know a little bit about sessions, but i'm not so sure i trust it (i've got some other sites with sessions, i'm not so sure they're that secure)
and any other recommendations. keep in mind this is really for just my personal use. but it does look somewhat similar to youtube (on the page where you play the media at least)
attached are some screenshots