fmerg Posted August 23, 2008 Share Posted August 23, 2008 i have a folder on my server that has avi's and mpeg videos was looking for a script that would read this folder and stream the video that a user clicks some thing like "simple image folder" does for images (sample of sif here http://69.206.137.83/members/files/fmerg/ ) Quote Link to comment Share on other sites More sharing options...
fmerg Posted August 26, 2008 Author Share Posted August 26, 2008 being this post has been read 29 times i guess what i am looking for is not possible with php any one know of any way of doing this or an easy way to setup msql Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted August 26, 2008 Share Posted August 26, 2008 We aren't going to supply you with the script. You can use opendir() and the other functions that are mentioned on that page. In fact, they have a sample of how to read all the files in a directory on that page. Then it's just a matter of say, adding them to an array. Then grab the requested user video that is sent by the URL (?video=24). So you could rename your videos to ids or make them easier to write in the address bar. Then it's just a matter of embedding them onto your website. Hope that makes some sense. Try to start it off yourself, if you have any troubles post in here. Quote Link to comment Share on other sites More sharing options...
fmerg Posted August 27, 2008 Author Share Posted August 27, 2008 thanks now i atlest have a place to start i should of explained that i am trying to learn php now i have a script that reads the directory now to work on the page to display the videos thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.