Well at the end of all my research I plan on writing a very long (7-10 page) article on it.
Code:
<?php
print('<? $rn = rand(1, 6);
switch($rn){
case 1:
//blue
$color = "0000FF";
$channel = "2764923058";
break;
case 2:
//red
$color = "FF0000";
$channel ="1104747216";
break;
case 3:
//green
$color = "06E30B";
$channel = "5236918995";
break;
case 4:
//light blue
$color = "02E3E0";
$channel ="9610675451";
break;
case 5:
//purple
$color = "8D1DE3";
$channel ="8927703813";
break;
case 6:
//yellow
$color = "FFFF00";
$channel ="0122181530";
break;
default:
$color = "FF9900";
break;
}
?>');
?>
That is how I did the random color... and I know the php might look a little weird but it was set to run through my caching system. So that file was used to print a php file which then processed the code.
Bookmarks