i have a file called 1.htm which has this text:
- <a href="http://mp3a.attin.com/English/female/Britneyspears/01.mp3">Baby
One More Time</a><br>
- <a href="http://mp3a.attin.com/English/female/Britneyspears/02.mp3">(You
Drive Me) Crazy</a><br>
- <a
href="http://mp3a.attin.com/English/female/Britneyspears/03.mp3">Sometimes</
a><br>
- <a href="http://mp3a.attin.com/English/female/Britneyspears/04.mp3">Soda
Pop</a><br>
- <a href="http://mp3a.attin.com/English/female/Britneyspears/05.mp3">Born
To Make You Happy</a><br>
- <a href="http://mp3a.attin.com/English/female/Britneyspears/06.mp3">From
The Bottom Of My Broken Heart</a><br>
- <a href="http://mp3a.attin.com/English/female/Britneyspears/07.mp3">I
Will Be There</a><br>
- <a href="http://mp3a.attin.com/English/female/Britneyspears/08.mp3">I
Will Still Love You</a><br>
- <a href="http://mp3a.attin.com/English/female/Britneyspears/09.mp3">Deep
In My Heart</a><br>
- <a
href="http://mp3a.attin.com/English/female/Britneyspears/10.mp3">Thinkin
About You</a><br>
What i wanna do is to read the file and store all the url's and the song
names in an array where $songs[$songname] = $url
for example $songs["Baby One More Time"] will have the value
http://mp3a.attin.com/English/female/Britneyspears/01.mp3
i tried several things but i always got problems with regular expression
operations, and i am not even sure if i made any mistakes while reading the
file content.
can somebody please write the coding for my problem?
Burak Guzel