The PHP Catcher

Ask questions, request features, or just complement us about our software and services.
Post Reply
Static
Posts: 2
Joined: Fri Nov 05, 2004 4:03 pm

The PHP Catcher

Post by Static »

Just curious whats wrong with this

Code: Select all

<?
include("includes.php");
?>
<?
print("IP:<br>\n"$ip);
print("DJ:<br>\n"$desc);
print("Song:<br>\n"$current_song);
print("Listeners:<br>\n"$listeners);
print("MaxListeners:<br>\n"$max_listeners);
print("BitRate:<br>\n"$bitrate);
print("Status:<br>\n"$status);
?>
The example2.php works I just made a new one to try to make a easily parsable thing for a few other scripts
User avatar
Jay
Will work for food (Administrator)
Posts: 3029
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

right off the bat I see you are missing the append character.

Why not:
echo "IP:<br>\n".$ip;

instead of the print function
- Jay
Static
Posts: 2
Joined: Fri Nov 05, 2004 4:03 pm

Post by Static »

print("IP:<br>\n".$ip."<br>\n");
print("DJ:<br>\n".$desc."<br>\n");
print("Song:<br>\n".$current_song."<br>\n");
print("Listeners:<br>\n".$listeners."<br>\n");
print("MaxListeners:<br>\n".$max_listeners."<br>\n");
print("BitRate:<br>\n".$bitrate."<br>\n");
print("Status:<br>\n".$status."<br>\n");
Duh, Im just used to print, question tho, i understand the main server is the "log" server, but is there a way to get each shout caster server's info with this? We use a round robin configuration and it would be nice if I could get each listener count in a easily parsable way
User avatar
Jay
Will work for food (Administrator)
Posts: 3029
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

just check "Send Server Details" in Radio Toolbox and each individual server's detail will be sent in a $server array.
- Jay
Joshyounguk
Posts: 5
Joined: Sun Oct 31, 2004 5:47 am
Location: Nottingham
Contact:

Post by Joshyounguk »

ok i got radio toolbox but How do i get the Script from it ????
Post Reply