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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I guess what you need is some .htaccess
for example the url you provided could be
theonlinebeatz.com/Music.p hp?name=Ba chata
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/
for example the url you provided could be
theonlinebeatz.com/Music.p
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/
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).
ASKER