Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: MPD status
#3
(03-08-2019, 05:26 PM)Tim Curtis Wrote: Edit /var/www/command/index.php and uncomment the echo statement in the code block below

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
I 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).
Reply


Messages In This Thread
MPD status - by fabnavigator - 03-08-2019, 04:41 PM
RE: MPD status - by Tim Curtis - 03-08-2019, 05:26 PM
RE: MPD status - by fabnavigator - 03-08-2019, 05:46 PM

Forum Jump: