|
|
#1 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
PHP based XML parser
I picked up this code from http://www.radiotoolbox.com
But I dont know what else I need to make it work as I cant see where I would put the server info so it can collect the needed info. I've searched on the forums. But never seen a topic thats shown this script being configured. If I'm missin something plz let me know. PHP Code:
I do know that this code is off the radio tool box appz. But there will be no point in me installing this on my PC as I dont host the server locally. So I'm jus trying to see this Parser can be configured to work without having the Radio Tool box installed on my PC. Let me know please. Brgs Last edited by Swiftie; 31st July 2003 at 11:40. |
|
|
|
|
|
#2 |
|
Forum Loser
(Forum King) |
hmmmm thats a thing I don't understand either...
try this go to http://totalrequests.nboxmusic.com/ and click on the goodies there is a winzip file samed Chrystal Stats, that should help its I think a little easier to work
|
|
|
|
|
|
#3 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
![]() If you can't install Radio ToolBox, why do you think RTB modules will work stand-alone? Please see this thread. |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
Reason why I'm thinkin I cant install RTB is cause the Shoutcast Server is hosted on Streamguys & I thought RTB will only work if u have you Server locally. So if I was to install RTB. Wont that mean my PC will need 2 be on if I want the Parser to work?
Thanx DJHotice. Will look into that. Brgs |
|
|
|
|
|
#5 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
I believe all you need to do is tell RTB your DNAS ip, port and password.
|
|
|
|
|
|
#6 | |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
Quote:
This is the reason why I was interested in a stand alone code that I can jus bang on a Webhost & let the script just catch the info from the DNSA & the rest is understandable. Brgs |
|
|
|
|
|
|
#7 |
|
Moderator Alumni
Join Date: May 2000
Location: Next Door
Posts: 8,942
|
yea Radio Toolbox needs to run in a windows environment that is connected to the internet, the server does not have to be local.
A good place to place it is with the source Winamp. If this is not an option then using the other PHP based parsers will be neccessary. Just remember to use caching when you use these as they will quickly hammer you shoutcast server to death if you have a large surge of traffic at your website. By the way, the includes.php comes from the catcher.php scripts included with the installation of Radio Toolbox, this includes.php holds all the data that radio toolbox has on your servers. You can then simply do this include("inclues.php"); on multiple php pages to include stats about your server on every page of your website. Including this module. -Jay | Radio Toolbox.com |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
Ok. Finally I've managed to get something that I liked.
Example ->> Can some please suggest a way I can make the TEXT bigger. As its a lil hard to read for other people at times. Brgs |
|
|
|
|
|
#9 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
Chack out the ImageString and ImageLoadFont functions.
|
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
So I just have to delete these functions from the script?
After doing this then how can I set the Text size to a bigger size. PHP Code:
PHP CODING Thankx to DJRampage |
|
|
|
|
|
#11 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
Don't delete the lines.
Use ImageLoadFont to load a new font for your image. Use the font loaded in ImageString. |
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
Would it be possible that instead of the parser getting the SONG info from the yellow pages. That it collects the Server Description instead??
PHP Code:
Brgs |
|
|
|
|
|
#13 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
Do you mean the stream title?
It's available from the DNASs XML as an element named SERVERTITLE. |
|
|
|
|
|
#14 | |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
Quote:
But how can I implement it to show up on something like this.. instead of the song title. |
|
|
|
|
|
|
#15 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
Any one have any ideas please?
![]() Brgs |
|
|
|
|
|
#16 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
Please some one who can be off assistant help me please.
I've tried everything but its not managed to work. I even tried to change the PHP Code:
PHP Code:
But all I get is a blank input when the server is on & has a Stream Title. ![]() So any one with ideas please feel free. Brgs |
|
|
|
|
|
#17 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
What package are you using?
|
|
|
|
|
|
#18 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
I'm using this code here. Which started off from DJ Rampage & I've just edited & kept the info I need. But as the dj's that play on my station mix from decks I would like to have the script grab the stream tittle rather than the Song Title as then it will be simple for my Dj's to configure this so that visitors can see what DJ is on at what time. Instead of having to muck about with disabling the auto update & then having to put his name each time he logs onto the server. If this script could just grab the server title then all the DJ would need to do is put his name under Server Description & off he goes.
BTW this is the code I use. PHP Code:
Brgs |
|
|
|
|
|
#19 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
Still tryin to get this code to work
![]() Can any one please shed some light to my problem Brgs |
|
|
|
|
|
#20 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
Just bumping this for any one that know's what I may need to tweak to the code to show the "SERVER TITTLE" instead of the Song Tittle.
Brgs |
|
|
|
|
|
#21 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
|
|
|
|
|
|
#22 |
|
Junior Member
Join Date: Jan 2003
Location: United Kingdom
Posts: 49
|
Yeah I see sense now.
![]() Is there any other code or anything else that I can use that can call the server tittle at all? Brgs |
|
|
|
|
|
#23 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
Use the DNASs XML statistics
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|