PDA

View Full Version : PHP script to change channel Topic


KrazyBob
15-03-2006, 05:30
I would like to change the channel topic from a PHP script. We use TS as a radio relay and I'd like to use the topic field as a "Now Playing" field. I don't know where to start.

Cyrus
15-03-2006, 16:16
This is unfortunately impossible with TS2.

KrazyBob
15-03-2006, 19:06
Nothing is impossible :) Does anyone have a script that will read/write the SQLite database?

Cyrus
15-03-2006, 19:19
Yeah changing the SQLite is possible but most server admins avoid this because everytime you would make a change you have to restart the subserver this is especially for a radio station not a good solution so I did not mention this possibility.

KrazyBob
15-03-2006, 19:33
When editing the topic in TS it updates the screen immediately without restarting the server. I'm sure that the program has a command that forces the update of the screen only. This is what I need to do. If it isn't possible, it isn't possible. But I'd like to try.

Cyrus
15-03-2006, 19:37
Yeah this is right but this does not work with the database unfortunately. If you for example search the forums here you will find many people who tried and came to this conclusion (about creating / dropping channels with database) so this should be probably the same with the description. So you will probably not find any script dealing with this if you really want to try you have to write your own...