Page 1 of 1

xmms control

Posted: Sat Feb 14, 2004 5:44 pm
by redhair
I think this would be nice on my little server homepage:

Code: Select all

<?php
		if (isset($_GET['xmms']) && $_GET['xmms'] == "stop")
		{
			exec("xmms stop");
		}

		if (isset($_GET['xmms']) && $_GET['xmms'] == "groove_salad")
		{
			exec("xmms play http://64.236.34.196:80/stream/1018");
		}
?>
But it doesnt work...
Get no respond on my local machine.

How would I make it work?

8O

So I'm left guessing on how I should make xmms execute by this script...

*help*

(ps: exec works on other scripts....so it's not that 'exec' don't work at all.)

Posted: Sat Feb 14, 2004 6:36 pm
by markl999

Posted: Sat Feb 14, 2004 7:48 pm
by redhair
wow :)
takes a little study...but i'll give it a shot.
Seems alright though...

Posted: Sun Feb 15, 2004 7:15 am
by redhair
right...

I seem to have installed it...but it doesnt work because I am stuck on this message:
end of instalation wrote:Libraries have been installed in:
/var/www/html/xmms/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
I never used libtool before :roll:

(btw: "phpize", one of the first commands needed to install this was not available on my machine, so i first had to install the php-devil package.)