xmms control

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

xmms control

Post 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.)
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

wow :)
takes a little study...but i'll give it a shot.
Seems alright though...
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post 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.)
Post Reply