pavelazad — 2011-05-31T05:35:46-04:00 — #1
hii i have a database field which contains link. like this..
How can i get only
downloads/songs/Bangla/Band/artis/album/ in a variable
that i can write xml file to that directory link. here the above link will be before playlist.xml.
$file= fopen("playlist.xml", "w");
anyone can help me please.
dsmit — 2011-05-31T05:37:53-04:00 — #2
You can use the PHP function dirname for this purpose. It will give you the name of the directory in which the file resides.
anthonysterling — 2011-05-31T05:52:25-04:00 — #3
You could also use pathinfo.
$path = pathinfo(