Link to home
Start Free TrialLog in
Avatar of Zirwo01
Zirwo01

asked on

PHP Code

Can any one help me. I need a simple PHP code that will read the content of an online folder on my wbt site for example http://theonlinebeatz.com/Music/Bachata. I will like to know the name of the file ext (I wish only to read MP3) I would like to keep a list of the files that are currently in the folder
ASKER CERTIFIED SOLUTION
Avatar of Keith Brown
Keith Brown
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zirwo01
Zirwo01

ASKER

This is awsome what about if I would like it in aphabeticle order?
I guess what you need is some .htaccess
for example the url you provided could be
theonlinebeatz.com/Music.php?name=Bachata

and if you can make your system like this e.g.: file.php?name=xxxxxxxx

then with some htaccess tricks you can change the way url is shownn

http://www.devarticles.com/c/a/Apache/Using-ForceType-For-Nicer-Page-URLs/1/
Avatar of Zirwo01

ASKER

I am not following you gnito....is this for the read folder content?
It appears as if they misread the question, in that thinking you have a php script, and you want it to appear as if it is a directory. Which, there are simpler ways than using .htaccess to do that as well ('d have just made a folder named /music/ and named the script index.php and placed it in the folder).