03-08-2019, 05:46 PM
(03-08-2019, 05:26 PM)Tim Curtis Wrote: Edit /var/www/command/index.php and uncomment the echo statement in the code block belowI didn't have an echo statement to uncomment, so I just added it, and it worked like a charm. I had originally tried "/command?cmd=status", but when it didn't return any results I tried just "status". In any case, it's working now. Thank you. I don't think I would have figured this out on my own (ever).
Code:else {
sendMpdCmd($sock, $_GET['cmd']);
$result = readMpdResp($sock);
closeMpdSock($sock);
//echo $result;
}
Then use the following URL
http://<host or ip_address>/command/?cmd=status