yes im very new to embedding and web development..i found this code on how to scan a folder and create playlist thru xml. so thats done...now my problem is..is it possible for it to play automatically and not echo it as links? what i want to do is play all the content of a folder into jwplayer..thanks in advance...
the code that i got from here (scans and echoes links for playlist)
according to what ive read from other threads...i need to create an RSS feed which i dont know if ive done correctly...ive just merged codes from what ive found here and tried to logically debug them as one...
this is the code for rss generation (which doesnt create the right playlist) bc.. <?php $path = "./12345/"; $xmlfile = "$path/playlist.rss"; $path2="http://".$_SERVER['localhost'].dirname($_SERVER["PHP_SELF"])."$path"; $folder = scandir($path); $files = array(); foreach($folder as $file) { if (($file == '.' OR $file == '..' OR $file == 'index.htm'){}else{ $files[$file] = filemtime($path.'/'.$file);
$hostname = 'localhost'; $username = 'root'; $password = 'strongpassword'; $dbname = 'user'; mysql_connect($hostname, $username, $password) or DIE('Unable to connect to NAS, check if SQL server is enabled'); mysql_select_db($dbname) or DIE('Database is not available!');
$query0=mysql_query("SELECT * FROM tbl_user_accounts WHERE (user_name = '" . mysql_real_escape_string($name) . "') and (user_pass = '" . mysql_real_escape_string($pass) . "')"); $row0=mysql_fetch_array($query0); $id = $row0['user_id']; $serial = $row0['user_serial'];
note: what i intend to accomplish is scan a folder exclusive to the user who logged in the website(this folder is created along with the account details. and will hold uploaded images/videos from that user)...then when the user visits the URL to embed this codes, he would just simply tag his folder name and should retrieve and play all the media contents of his folder....
if anyone could help me figure this out it would really be much appreciated.
im sorry but i dont have..im hosting this locally doing tests using wamp server. but is it possible to achieve what i want to happen?
using the code from the auto playlist xml i can generate a page where all the contents are shown in a list and all are linked. each are needed to be clicked for it to play on another page...maybe theres a way to auto play this list and not load them as lists?
well in any case. i figured out a way to work around this problem...now a new question comes to mind...
can you lead me to any forums or site that would introduce me into content managing/editing on my website? id like the users on my website to be able to upload images/videos and be able to edit it in someway before they publish it. where do i start with this? tnx in advance.
hello again Ethan. I just got clipbucket to work and i havent really explored it much but definitely will..i just want to ask as a heads up so i know what areas to explore...can clipbucket be integrated to my website as a script/plugin? and not as a whole clipbucket MMS? what i mean is that i want the ability and features of clipbucket to manage multimedia and integrate it to my site and not put clipbucket as is to it?