PHP-XMMS
========

A simple little extension written on over the course of two flights.
Has only been tested on Linux and will need a bit of config.m4 tweaking
to work on other platforms or older Linux systems.  

To build it:

phpize
./configure
make
cp modules/xmms.so /usr/local/lib/php

If you have php-gtk installed, try running ./gtkxmms

There is a simple little web interface available in xmms.php
You will need to give your web server permission to write to
/dev/dsp and you may need to xhost your external ip as well
if you want to give the web interface the ability to launch
XMMS through xmms_start().  Otherwise you can simply start XMMS
as your web server user id yourself and xmms_start() will detect
that it is already running and talk to the running instance.

Both a procedural and an OO API is provided.

eg.

Procedural:
-----------
<?php
    xmms_start();
    xmms_play();
	$info = xmms_current();
	echo $info['title'];
	echo $info['file'];
?>

OO:
---
<?php
    $x = new xmms(true);
    $x->play();
	$x->current();
	echo $x->title;
	echo $x->file;
?>

Known Bugs
----------

If you have Apache or PHP linked against libgssapi_krb5.so then this 
extension won't work because the g_strdup() function is defined both
in libglib and in libgssapi_krb5.  This Kerberos library is likely
there if you are on RH-7.1 and compiled the imap extension into PHP, 
or if you are using some of the authentication Apache modules.  Check
using ldd if you have this library linked in.

ie.  ldd httpd
and  ldd libphp4.so

The symptom you will see is a SEGV in strlen() coming from g_strdup()

-Rasmus
