
20.01.2009, 19:49
|
|
Познающий
Регистрация: 13.12.2008
Сообщений: 54
С нами:
9162484
Репутация:
80
|
|
Vinsik
PHP код:
$file = "./share/playlist.xml";
if(file_exists($file)) {
$text = file_get_contents($file);
preg_match('/<location>.*\/(.*?)\.mp3<\/location>/',$text,$m);
echo $m[1];
} else die('cann\'t open file!');
|
|
|