![]() |
shoutcast stats offline problem
hi every body
I have downloaded a a shoutcast stats from http://www.casterclub.com/scast_status.php shoutcast_stats_v2.1 I have done all section like fowalling by INSTALL but every time i get the message : Our server is temporarily down, please stop back soon I have too do connect to shoutcast all thing but what can the problem?? please need really help i have tested all type script none work now i will thats be working so help me plzz ?? |
Your problem may be with your webhost and not the scripts. If your webhost does not support fsock connections then no script of this nature will work properly. The server has to have the ability for the script to open an outbound connection to your server, retrieve the data and display it. If it cannot make that outbound connection it cannot work.
I'd first look at the webserver as the source of the problem if you are sure you have the script configured properly. |
also I have a linux server and when Iam start the server so thats work but when iam looked on the script theres says offline all times,
What do u mean problem with webhost? I have configured all thing in right, so what i have a left? |
should i need Apache/1.3.34 Server to show the song title in my homepage?
|
can any one answer to my quesstion? i have wating for the quesstion in 6 days halloo? say how make do that songtitle on the site, any help ? step to the step? thanks!
|
you'll need a webhost who supports php.
if it doesnt good luck trying to find an html code. |
ok listen up, can not I take the script from shoutcast also just take the url from my server station like wirte in the songtitle http://192.164.0.7:8080/ and then the file songtitle like shoutcast have?
Can some give me whats the url to songtitle like shoutcast have? |
That's your internal IP, it won't work. You need to add your external IP to your stats file.
Usually the fsock error is because the php cannot speak to the IP, if your webpage is outside of your pc (eg not apache) then the php needs to 'talk' to the external IP. www.whatismyip.com |
You may not be able to run PHP that makes external [socket] refs. unless you host your own HTTPd with PHP installed just like you host the DNAS...
You do have to be a bit of a hack to get that going, so I have some JavaScript codes you can use: <script src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php?index=NN&host=XX&port=YY"> </script> This code should be one line, and will be replaced with the JavaScript output. Before you try to use this code, You must replace: XX with the IP or DNS hostname of your DNAS server. YY with your DNAS PortBase. and NN with 5 to output a listen link containing the track title, listeners:maxlisteners as a percent [%], and the bitrate. or NN with 51 to simply output the track title text. You can see examples of this in action, and the other options and capabilities of this script here. [edit:forgot to add the script name, lol] |
ok thanks but what the only url like showing Currently Playing and showing Last 9 Played ...i need just them two
|
There's nothing like that unless you write the script yourself.
The last N playsed is found in /played.html -- this is effected by the DNAS config option ShowLastSongs=[1-20] and the currently playing is found in index.html and 7.html Unfortunately, it's all or nothing there, and only a full html doc is returned. My script is a "hack" of that same base code, but it has evolved into a test app for a host of custom things including an ad-hoc station directory -- http://djspinnercee.servehttp.com/scStatus.html |
sorry u missunderstond me, I not mean the file, like html and or, I mean I have write Currently Playing: and the url like exempel songtitle.php like djspinnercee have on the server, this is exemple how i mean on the url script
Currently Playing: <iframe allowtransparency="true" src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php?index=NN&host=213.100.68.19&port=8080" width="225" height="17" frameborder="0" scrolling="no"></iframe> I hope u can understand me :) |
NO... The script outputs Javascrpt -- No IFrame is needed -- so use it like this directly in your HTML.
Currently Playing: <script src=..[as above].. ></script> If you want to use it in an IFrame so it can refresh independently from the main page, use it the same way as above, but it will have to appear in a static HTML file that has a meta REFRESH tag . If you use it the way you have it, you'll get something like document.write('blah, blah, blah......'). Also, you forgot to replace the index=NN with either index=5 or index=51 -- That's the most important thing! -- index=NN will make the script return a full html status "page." *** Syntax is EVERYTHING |
but i wanna u looked on my site http://www.impactsoundz.com/kurdnewhits/index.html
look there Current song : and i have the script u have above.. i want not get so only showing whats the song just that not more like design all shit only the titlesong! |
First off -- my script cannot/does not list last 9 and just the current track -- it's either a full HTML page with everything [index=0], or just the track title [index=5|51] as javascript.
Copy and Paste the following line EXACTLY where you want the current track info to appear <script src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php?index=5&host=213.100.68.19&port=8080"></script> then click here. This will display a whole page -- it cannot be seperated into the parts you want and don't want. |
but what can i have thats for ? whats helping? this is like same shoutcast like http://localhost:port
|
Maybe I just don't understand what you want exactly.
Maybe you don't understand how to use javascript well enough. Your station is in my directory now -- if you hover over the station name you will see the track title in a pop box -- http://djspinnercee.servehttp.com/scStatus.html -- this just means the script is finding your DNAS. You have to use the full <script src="..."><script> tag on one line exactly as it appears above where you want the track title to appear, on the page you want it to appear on. NO IFRAME. Let me make something else clear, this is for the track title only. NO last 9 songs. |
ok look I wannt 2 things in my homepage like showing live:
1. Current Song 2. Song History That's all i need for my home site also the ready script or url like make that ...u understand me? |
I can't help you with #2
for #1 check this out: on this page: http://www.impactsoundz.com/kurdnewhits/index.html I found the following HTML: code: Replace that with this: code: or this: code: Notice, all I did was replace the <songtitle></songtitle> pair with the javascript <script src=....></script> tag pair. I can't make this any easier for you unless I actually edited it for you myself, and I get paid for doing that. **** I hate posting code :( |
do u know what I gonna do now for get them things i want?
Can i get some scripts or what can i do please? |
i have fixed that Current song thank u thank u very very mutch u are great :D
but i have left only history song, any know how and u know how?= |
Maybe soemday I'll add a "last N played" object [think Springtime], I have other things to do before I tackle that one.,.
|
ok but do it quickly...And report in this thread if u are done with that too.. Thanks&Bye
|
have u a url script to Next song: too?
|
djSpinnerCee I am having same problem (opened a new topic if you prefer to help me over there) by using your URL i can get some infos, but it is slowing down my site too much. Is it anyway that I can install a webserver on my PC instead and then get info directly using the script then ?
Can you help me this way ? Thanks alot. |
That is the big downside to running a remote script [remote to your DNAS] -- I agree, it can slow your page loads a bit, my end is often working pretty hard -- just remember, the PHP script must get 2 full HTML pages from your DNAS, take out the info you want, then return the info to your site visitor -- needless to say, that "trip" sometimes circles the globe twice.
MY current script is not written to be run anywhere but on my onn LAN where it has access to all of my servers -- the script also does maintenance and other internal stuff that I just haven't had time to complete, so I can't give it up just yet. Maybe in the Spring, I'll have time to drop some streamlined utilities and/or code samples and I'll be willing to support code running elsewhere. You can help the page load performance by not placing the javascript code within a table row that is not sized before the javascript is run -- otherwise the browser render code will have to wait for the remote js output to be returned before the browser can continue rendering the page. Less graceful is placing the js code in a static html doc, included in your page in a bounded [sized] IFRAME box would also allow the parent page to render independently of the JS code. |
I will leave it like this till I get an other solution. I will put it a static HTML page and then i ll call that page with Iframe (just for your information I am using PHPBB based site Portal).
Thanks:) |
I have put the Code in a Html Page which contain also the player embeded. But now the problem is that tha same title is shown all the time so the Url thing is useless :( I have to find an other way to get the Current song :(
Any Idea what to do :( Btw I asked my Host about fsockopen lets see what they will reply back |
Javascript codes only run the script when the page they are contained within is loaded or refreshed.
Place the code in refreshing static html, an include it on your page with IFrame tags. Learning to use HTML and JavaScript a little better will help -- consider this an advanced topic. |
can you please give a piece of code that refreh the html page ?
|
Meta tags are HTML HEAD elements...
<meta http-equiv="refresh" content="120; "> content={seconds} |
Yhanks I have already foudn on Google but I edited the wrong message lolzzz It is working now :) Hope your server is 24 h online :P
|
| All times are GMT. The time now is 14:02. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.