Re: WinampCOM problem
| From: | Scott Hurring | Date: | Mon, 08 Jul 2002 21:36:52 +0000 |
| Subject: | Re: WinampCOM problem | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14614@lists.php.net to get a copy of this message | ||
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" <raggart@colvir.net> wrote in message
news:5.1.0.14.0.20020705204726.00aba9d0@colvir.net...
> 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
>