The WiampControler Class is a usefull class for the purpose of controling winamp. It has a forum which you can get help at:
To use the class simply copy the class.winampstatus.php file into your favorite include place then connect to the class using this:
$somevar = new winamp_control("user","pass","server1","server2");
then get the status
... rest of script ...
you must use:
at the end off all the files that you instanced the winampcontroler in, or winamp will crash after a few times of accessing winamp.