Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Random stream / mp3

Maerou Czukor
Ouriye Mærou
Join date: 16 Jan 2005
Posts: 30
03-19-2005 14:38
Here's what i have. I have my stream set to http://mysite.com/stream.php

CODE

<?php

$url[0] = "http://www.tatu.ru/mp3/200rus/1.mp3";
$url[1] = "http://www.tatu.ru/mp3/200rus/2.mp3";
$url[2] = "http://www.tatu.ru/mp3/200rus/3.mp3";
$url[3] = "http://www.tatu.ru/mp3/200rus/4.mp3";
$url[4] = "http://www.tatu.ru/mp3/200km/3.mp3";
$url[5] = "http://www.tatu.ru/mp3/singl/2.mp3";
$url[6] = "http://www.tatu.ru/mp3/rem/8.mp3";
$url[7] = "http://virus-music.ru/Mp3/Bratishka.mp3";
$url[8] = "http://virus-music.ru/Mp3/Ruchki.mp3";


srand ((double)microtime()*1000000);
$num = rand(0, count($url)-1);
header ("Location: $url[$num]");
?>
Lance LeFay
is a Thug
Join date: 1 May 2003
Posts: 1,488
03-19-2005 19:40
Uhh....?
_____________________
"Hoochie Hair is high on my list" - Andrew Linden
"Adorable is 'they pay me to say you are cute'" -Barnesworth Anubis