I have tried that.
I get this error:
Parse error: syntax error, unexpected ‘}’ in /var/www/stats.php on line 14
Then I took out the bottom } and tried again and I get this:
[PHP]<?php
$xml = simplexml_load_file(“wowzaip:8086/connectioncounts”);
//var_dump($xml);
foreach ($xml->Application as $item) {
$tmp = (string) $item->Name;
echo $tmp."
";
foreach ($item->ApplicationInstance as $item2) {
$roomName = (string) $item2->Name;
$Connections = (string) $item2->ConnectionsCurrent;
echo $roomName.": “.$Connections.”
";
}
}
?>[/PHP]
[PHP]Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “wowzaip:8086/connectioncounts” in /var/www/stats.php on line 2
Warning: Invalid argument supplied for foreach() in /var/www/stats.php on line 5[/PHP]