RE: [PHP-WIN] Getting winamp info
| From: | Dash McElroy | Date: | Wed, 25 Sep 2002 00:35:23 +0000 |
| Subject: | RE: [PHP-WIN] Getting winamp info | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-15986@lists.php.net to get a copy of this message | ||
I'm /sure/ this won't help you much (especially right off the bat), but this
is how LiveJournal's client does the same thing.
http://www.livejournal.com/developer/winamp.txt
It looks like it just looks at the current task lisk, looks for winamp, then
grabs the title. Unfortunately, it looks like C code...
-Dash
-----Original Message-----
From: Olivier Hubert [mailto:raggart@colvir.net]
Sent: Tuesday, September 24, 2002 5:12 PM
To: php-windows
Subject: [PHP-WIN] Getting winamp info
Hi,
I would like to retrieve some Winamp information from the server running my
PHP site. The objective is to show what song Winamp is currently playing
(title only) if Winamp is in use. I've tried using WinampCOM but the
problem is that even if Winamp is not active, when I load the PHP page, it
starts winamp. Here is the sample code I'm using:
$winamp = new COM("WinampCOM.Application") or die("Could not instanciate
WinampCOM object");
Moreover, I cannot get the $winamp->CurrentSongFileName() to work properly,
the function always fails.
Anyone know how to interact with Winamp 2 in PHP? (server side only)
Thanks,
Olivier
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php