Search found 8 matches

by danchik
Wed Nov 30, 2005 2:15 pm
Forum: General Discussion
Topic: php color change - Online - Offline
Replies: 9
Views: 20555

Ooofff. Ok Done :) - Took me several hours. :) Thanks for the tips Jay.
Here it is, if anybody needs it

// Replace \\\"x\\\" with server numbers
<?php echo $server[x][\\\'bitrate\\\']; ?>
<?$status =$server[x][\\\'status\\\'];if($status == \\\"Online\\\"){$color = \\\"#009900\\\";}else{$color ...
by danchik
Wed Nov 30, 2005 11:01 am
Forum: General Discussion
Topic: php color change - Online - Offline
Replies: 9
Views: 20555

Hi Jay. Ok this one seems to work.
$server[x] - when I change \"x\" to any of the server numbers (0-4) they all change color (red or green depending on which stream is online). So now I need to figure out how to make each stream change colors accordingly. Please suggest. Thank you.

Here is the ...
by danchik
Tue Nov 29, 2005 4:05 pm
Forum: General Discussion
Topic: php color change - Online - Offline
Replies: 9
Views: 20555

Jay.
I really dont know that much about php. So I was just hoping for an existing script. The one I put together was taken from here http://www.php-scripts.com/php_diary/example5.phps and I just modified to what I think it should look like, for my purposes. But I'm not really sure what I am doing ...
by danchik
Tue Nov 29, 2005 3:43 pm
Forum: General Discussion
Topic: php color change - Online - Offline
Replies: 9
Views: 20555

here is clean ver:

Warning: Unexpected character in input: \'\\\' (ASCII=92) state=1 in /var/www/html/stat2/index0.php on line 304

Parse error: parse error, unexpected $ in /var/www/html/stat2/index0.php on line 326
by danchik
Tue Nov 29, 2005 3:42 pm
Forum: General Discussion
Topic: php color change - Online - Offline
Replies: 9
Views: 20555

:) i did not even think that this one should work

Warning: Unexpected character in input: \'\\\' (ASCII=92) state=1 in /var/www/html/stat2/index0.php on line 304

Parse error: parse error, unexpected $ in /var/www/html/stat2/index0.php on line 326

on line: 304 $server[n] etc..
on line: 326 end ...
by danchik
Tue Nov 29, 2005 3:16 pm
Forum: General Discussion
Topic: php color change - Online - Offline
Replies: 9
Views: 20555

php color change - Online - Offline

Hi.
I need help figuring out how to make the php script change colors on a status. ie Online - green, Offline - red.
I am not php programmer, but to illustrate the idea it should look smth like this:

<?
$server[n][\'status\'] = \"Online\"
print(\"$server[n][\'status\']\");
if($server[n][\'status ...
by danchik
Thu Sep 22, 2005 8:47 am
Forum: Radio Toolbox
Topic: [b]31 server limit?! (php)[/b]
Replies: 3
Views: 5889

OK, I can use multiple instances, but how do I make one stat php page? :?

and is there a code high users?
thanks for promt reply btw
by danchik
Wed Sep 21, 2005 9:42 am
Forum: Radio Toolbox
Topic: [b]31 server limit?! (php)[/b]
Replies: 3
Views: 5889

[b]31 server limit?! (php)[/b]

Thanks a lot for this amazing peace of software

I have quite a lot of radio stations and I use it get the stats. However, I have a little problem with php script: I got more than 50 servers entered into to toolbox, but on my php stat page there are only 30 (31 to be exact: 0-30). Is there ...