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:[EMAIL PROTECTED]] 
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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to