December 13, 200817 yr Author No, use PHP to update it every time it loads the page. No sense pulling the server if nobody's visiting. A voluntary refresh isn't too hard. ok leave that topic. Tell me how can i show embedded media player playlist pane with mediaplayer in the html page.i have created the playlist named playlist.m3u
December 13, 200817 yr Maybe use : http://www.google.com/search?hl=en&sa=X ... ge&spell=1 [software Engineer] - [Ability Bar Suggestion] - [Gaming Enthusiast]
December 13, 200817 yr You could start a timer with JS and after so long it refreshes the list. What is it going to refresh? You will need to use ajax to sent an http request to a server side language. JS is a client side browser scripting language it does not have to power to do that. You would use js to refresh what ajax returns.
December 14, 200817 yr <?php // open this directory $myDirectory = opendir("."); // get each entry while($entryName = readdir($myDirectory)) { $dirArray[] = $entryName; } // close directory closedir($myDirectory); // count elements in array $indexCount = count($dirArray); Print ("$indexCount files \n"); // sort 'em sort($dirArray); // print 'em print("</pre><table border="1" cellpadding="5" cellspacing="0">FilenameFiletypeFilesize$dirArray[$index]"); print(filetype($dirArray[$index])); print(""); print(filesize($dirArray[$index])); print("</table>\n");<br><br Put that code in a .php file, place it in a php enabled web server, done? http://www.wampserver.com/en/ Is a good All-In-One
Create an account or sign in to comment