randio-radio/listeners.php

5 lines
248 B
PHP
Raw Permalink Normal View History

2018-03-06 22:28:38 +01:00
<?php
$output = shell_exec('curl -s "http://randio.it:8000" | sed "s/tr>/\n/g" | grep -i listeners | sed "s/<td>//g" | sed "s/<\/td>//g" | sed "s/<td class=\"streamstats\">//g" | sed "s/<\///g" | grep current | cut -d ":" -f 2');
echo $output
?>