Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Web Designing

Featured Replies

  • 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

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.

<?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

213360.png

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.