What user is your Server running as? For me, when i setup apache on my Win2k machine, i had to "RunAs" my personal "scott" account, rather than the system account, or else apache wouldn't be able to read certain "scott-only" files.... perhaps the user that apache is running as doesn't have permission to do COM stuff.... but i really don't know for sure.
-- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Olivier Hubert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php