Shoutbox

Listing File in Folder - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Listing File in Folder (/showthread.php?tid=26064)

Listing File in Folder by DJeX on 05-25-2004 at 11:29 PM

Well I'll post something more simple since my last couple post got no replies :S. How could I use PHP to write all files in a folder to an .asx file (a song play list for WMP)?

But the thing is I need it to write every line like this:

code:
<Ref href = "path/filefolder/filename.mp3"  />
<Entry>


I'm trying a different way of writing a .asx file (a song play list for WMP) The whole code of the .asx look like this:

code:
<ASX version = "3.0">

<TITLE>Xplode Radio</TITLE>
<Entry>
<Ref href = "../media/Light of the Dark.mp3"  />
<Entry>
<Ref href = "../media/Light of the Dark.mp3" />
<Entry>
<Ref href = "../media/Tranced.mp3" />
</Entry>

</ASX>


As you can see I have some songs already in the list but that’s how I need it look inside the .asx

So what i'm trying to do is write all the files in a folder into an .asx file in the format above.


Hope someone can help!

RE: Listing File in Folder by DJeX on 05-27-2004 at 11:39 PM

So no one can help?.......... poo  lol :dodgy: