- shell_exec: documentation ( source)
- file_get_contents: documentation ( source)
- preg_match: documentation ( source)
<?php
$pls = "http://listen.di.fm/public3/trance.pls";
$graburl = file_get_contents($pls);
preg_match('/(File1=)(.*?)(\n)/i', $graburl , $matches);
shell_exec ("wget -O 'stream' ".$matches[2]);
?>