hmmm no worky, it returns:
Parse error: parse error, unexpected $ in C:\FoxServ\www\allstreams.php on line 129
but i cant find a $ that could cause this...
Also i noticed ive failed to give all the code and there for this is not right:
while ($alltitle[$i]) { //$allstream[$i]) {
echo 'array element = '.$i.' '.$alltitle[$i].'<BR>';
Sorry :queasy:
Anyway.
I retry:
theres 2 arrays:
$alltitle = array(
"SHRIKEÉ TV",
"Ravas Office",
"Zyferus",
"Raver4Life",
"Ravetrax STUDIO (with sound)",
"NAKI TV",
"Lazloe Studio",
"PonkoVision",
"THATguySHOW",
"Naxor Online",
"Berfy's modern life"
);
$allstream = array(
"http://www.zerocom.ath.cx:8000/;stream.nsv", //SHRIKEE TV
"http://sirc.ravetrax.com:8617/;stream.nsv", //RAVAS OFFICE
"http://www.zyferus.com:8000/;stream.nsv", //ZYFERUS
"http://24.169.170.122:8015/;stream.nsv", //RAVER4LIFE
"http://rs3.ravetrax.com:8017/;video.nsv", //RAVETRAX STUDIO
"http://rs3.ravetrax.com:8634/;stream.nsv", //NAKI TV
"http://68.231.32.101:8040/;stream.nsv", //LAZLOE STUDIO
"http://cns1.yigabit.com:5674/;stream.nsv", //PONKOVISION
"http://24.31.103.95:8000/;stream.nsv", //THATGUYSHOW
"http://68.71.98.172:8000/;stream.nsv", //NAXOR
"http://67.170.111.160:8000/;stream.nsv" //BERFY'S MODERN LIFE
);
//also i included this line to set a maximum of cells in the generated table
$maxline_cam = "3";
That was the config part.
now the loop (this is the original and unedited):
$x=1;
if($streampage=="") { $i=0; }
if($streampage=="2") { $i=6; }
//if($streampage=="3") { $i=12; }
while ($allstream[$i]){
echo "
<td class='stream_cam_all'>".$alltitle[$i]."
<br><object width='280' height='200' classid='clsid:C5E28B9D-0A68-4B50-94E9-E8F6B4697517' border='1'
codebase='http://www.nullsoft.com/nsv/embed/nsvplayx_vp3_aac.cab' id='nsvplayx'>
<param name='Location' value='".$allstream[$i]."'>
<embed width='280' height='200' type='application/x-nsv-vp3-mp3'
codebase='http://www.nullsoft.com/nsv/embed/nsvplayx_vp3_aac.cab'
location='".$allstream[$i]."'></embed>
</object></td>
";
if($streampage=="") { $i++; }
if($i==6) { break; }
if($streampage=="2") { $i++; }
elseif($i==12) { break; }
//sets the maximum cells on a row
if ( $x == $maxline_cam ) {
echo "</tr><tr>";
$x=0;
}
$x++;
}
and to call another page:
Page: <a href="allstreams.php">1</a> <a href="allstreams.php?streampage=2">2</a>
And again my apolagies!!!