jerel Posted June 14, 2007 Share Posted June 14, 2007 Here is my problem I have a place to ftp wmv's I need some sort of script that will basically just list the filenames of the content of the folder, and the ability to make them links as so you click and the wmplayer opens the files. i'm going for simplicity here, i tried using ftp via a weblink, only problem there is to get permissions to where they need to be you'd have to chmod all day. back n forth. i've seen these before, I'm trying to avoid turning it into an automated system via forms and sql... thanks! Quote Link to comment https://forums.phpfreaks.com/topic/55626-creating-a-linked-list-of-wmvs/ Share on other sites More sharing options...
calabiyau Posted June 14, 2007 Share Posted June 14, 2007 $dir = "path_to_your_folder/folder_name"; $dh = opendir($dir) or die ("could not open dir"); while ( !(($file = readdir($dh)) === false) ) { if (($file != ".") && ($file != "..")) { //echo the link to the file here using the $file variable } } Quote Link to comment https://forums.phpfreaks.com/topic/55626-creating-a-linked-list-of-wmvs/#findComment-274907 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.