$stream['name'] = "PHPCast Stream"; /* Name of the stream */ $stream['genre'] = "various"; /* Genre of the stream */ $stream['url'] = "http://phpcast.sourceforge.net"; /* URL of the site hosting phpcast */ $stream['public'] = "1"; /* Set to 0 to make the server private */ $stream['bitrate'] = "128"; /* Set this to the bitrate of your mp3 files */ $stream['path'] = "data"; /* Path to the mp3 files. Relative or absolute */ // Configuration of the cache $cache['active'] = true; /* Set to false to disable cache (up to 3x slower for tags extraction ) */ $cache['type'] = gdbm; /* Type of cache (gdbm, ndbm, db2, db3, db4) depending on your php compile option */ $cache['directory'] = "cache"; /* Relative or absolute path to save cache files (beware of chmod) */
// Details of the stream $stream['name'] = "Radio Catholic-Songa.net"; /* Name of the stream */ $stream['genre'] = "religious"; /* Genre of the stream */ $stream['url'] = "http://radio.catholic-songs.net"; /* URL of the site hosting phpcast */ $stream['public'] = "1"; /* Set to 0 to make the server private */ $stream['bitrate'] = "96"; /* Set this to the bitrate of your mp3 files */ $stream['path'] = "data"; /* Path to the mp3 files. Relative or absolute */ // Configuration of the cache $cache['active'] = true; /* Set to false to disable cache (up to 3x slower for tags extraction ) */ $cache['type'] = gdbm; /* Type of cache (gdbm, ndbm, db2, db3, db4) - (в этой строчке перепробовал всё - не пашет :() depending on your php compile option */ $cache['directory'] = "cache"; /* Relative or absolute path to save cache files (beware of chmod) */ // Size of shoutcast frames $taille = 8192; /* You won't have to touch below for a normal setup */ @ini_set("max_execution_time", "0"); require_once'getid3/getid3.php'; require_once 'getid3/extension.cache.dbm.php'; // headers shoutcast header("icy-notice1:This is a WINAMP ShoutCast Stream"); header("icy-notice2:You will only see binary data, please press STOP button"); header("icy-name:".$stream['name']); header("icy-genre:".$stream['genre']); header("icy-url:".$stream['url']);
$cache['active'] = false;