WinampCOM problem
| From: | Olivier Hubert | Date: | Sat, 06 Jul 2002 00:53:16 +0000 |
| Subject: | WinampCOM problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14571@lists.php.net to get a copy of this message | ||
Hiya,
Just wondering if anyone else is having this problem. I am trying to control Winamp through HTTP using the WinampCOM plugin. It works fine when I call the script from the command line but not at all when the exact same script runs through HTTP (using Apache). Here is a bit of the code I use:
$Winamp = new COM("WinampCOM.Application") or die('Could not instanciate the WinampCOM object');
if (isset($Winamp))
echo 'Test: ' . $Winamp->CurrentSongFileName();
else
echo 'Not working';
Now, through the command line I see 'Test: ' followed by the current song's name but on the web page I see only 'Test: '. Anyone ever experienced this? Any help appreciated. For those who wonder, WinampCOM is available at: http://www.adcock8.freeserve.co.uk/winamp.htm.
Thanks,
Olivier