diff options
-rw-r--r-- | index.php | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -17,7 +17,16 @@ Weird nice music arf20 likes</p> <audio controls> <source src="/stream" type="audio/ogg"> - </audio> + </audio> + <pre> +<?php +$host = "192.168.4.6"; +$output = null; +exec("/usr/bin/mpc --host=$host -f \"[[%artist% - ][%album% - ]%title%]|[%file%]\"", $output); +echo $output[0] . "\n"; +echo $output[1]; +?> + </pre> </main> </body> </html> |