Old 10th January 2006, 20:19   #1
hogir
Member
 
Join Date: Dec 2005
Posts: 57
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 ??
hogir is offline   Reply With Quote
Old 10th January 2006, 21:36   #2
MegaRock
Forum King
 
MegaRock's Avatar
 
Join Date: Jun 2003
Location: Inside my water bong
Posts: 6,865
Send a message via ICQ to MegaRock Send a message via Yahoo to MegaRock
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.

Megarock Radio - St. Louis Since 1998!
Don't click this link!
Corporate Radio Sucks! No suits, all rock!
MegaRock is offline   Reply With Quote
Old 11th January 2006, 09:57   #3
hogir
Member
 
Join Date: Dec 2005
Posts: 57
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?
hogir is offline   Reply With Quote
Old 11th January 2006, 17:28   #4
hogir
Member
 
Join Date: Dec 2005
Posts: 57
should i need Apache/1.3.34 Server to show the song title in my homepage?

Last edited by hogir; 11th January 2006 at 17:58.
hogir is offline   Reply With Quote
Old 14th January 2006, 22:17   #5
hogir
Member
 
Join Date: Dec 2005
Posts: 57
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!
hogir is offline   Reply With Quote
Old 14th January 2006, 22:44   #6
tuckerm
Forum Emo
 
tuckerm's Avatar
 
Join Date: Mar 2005
Posts: 8,364
you'll need a webhost who supports php.

if it doesnt good luck trying to find an html code.
tuckerm is offline   Reply With Quote
Old 14th January 2006, 22:52   #7
hogir
Member
 
Join Date: Dec 2005
Posts: 57
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?
hogir is offline   Reply With Quote
Old 14th January 2006, 23:30   #8
Evil Lu
Forum Maitresse
 
Evil Lu's Avatar
 
Join Date: Mar 2005
Location: I'm hiding under your bed
Posts: 2,974
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
Evil Lu is offline   Reply With Quote
Old 15th January 2006, 00:07   #9
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
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]
djSpinnerCee is offline   Reply With Quote
Old 15th January 2006, 16:46   #10
hogir
Member
 
Join Date: Dec 2005
Posts: 57
ok thanks but what the only url like showing Currently Playing and showing Last 9 Played ...i need just them two
hogir is offline   Reply With Quote
Old 15th January 2006, 17:11   #11
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
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
djSpinnerCee is offline   Reply With Quote
Old 15th January 2006, 18:10   #12
hogir
Member
 
Join Date: Dec 2005
Posts: 57
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
hogir is offline   Reply With Quote
Old 15th January 2006, 18:26   #13
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
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
djSpinnerCee is offline   Reply With Quote
Old 15th January 2006, 18:35   #14
hogir
Member
 
Join Date: Dec 2005
Posts: 57
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!
hogir is offline   Reply With Quote
Old 15th January 2006, 18:45   #15
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
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.
djSpinnerCee is offline   Reply With Quote
Old 15th January 2006, 18:47   #16
hogir
Member
 
Join Date: Dec 2005
Posts: 57
but what can i have thats for ? whats helping? this is like same shoutcast like http://localhostort
hogir is offline   Reply With Quote
Old 15th January 2006, 18:58   #17
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
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.
djSpinnerCee is offline   Reply With Quote
Old 15th January 2006, 19:05   #18
hogir
Member
 
Join Date: Dec 2005
Posts: 57
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?
hogir is offline   Reply With Quote
Old 15th January 2006, 19:13   #19
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
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:

<p><span class="style14"><strong>Current song :</strong>
<songtitle></songtitle>

</span></p>



Replace that with this:
code:

<p><span class="style14"><strong>Current song :</strong>
<script src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php?index=5&host=213.100.68.19&port=8080"></script>

</span></p>



or this:
code:

<p><span class="style14"><strong>Current song :</strong>
<script src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php?index=51&host=213.100.68.19&port=8080"></script>

</span></p>



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
djSpinnerCee is offline   Reply With Quote
Old 15th January 2006, 19:15   #20
hogir
Member
 
Join Date: Dec 2005
Posts: 57
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?
hogir is offline   Reply With Quote
Old 15th January 2006, 19:24   #21
hogir
Member
 
Join Date: Dec 2005
Posts: 57
i have fixed that Current song thank u thank u very very mutch u are great

but i have left only history song, any know how and u know how?=
hogir is offline   Reply With Quote
Old 15th January 2006, 19:33   #22
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
Maybe soemday I'll add a "last N played" object [think Springtime], I have other things to do before I tackle that one.,.
djSpinnerCee is offline   Reply With Quote
Old 15th January 2006, 19:51   #23
hogir
Member
 
Join Date: Dec 2005
Posts: 57
ok but do it quickly...And report in this thread if u are done with that too.. Thanks&Bye
hogir is offline   Reply With Quote
Old 15th January 2006, 20:11   #24
hogir
Member
 
Join Date: Dec 2005
Posts: 57
have u a url script to Next song: too?
hogir is offline   Reply With Quote
Old 15th January 2006, 23:25   #25
NetuserFr
Junior Member
 
Join Date: Jan 2006
Posts: 26
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.
NetuserFr is offline   Reply With Quote
Old 16th January 2006, 00:07   #26
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
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.
djSpinnerCee is offline   Reply With Quote
Old 16th January 2006, 16:49   #27
NetuserFr
Junior Member
 
Join Date: Jan 2006
Posts: 26
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
NetuserFr is offline   Reply With Quote
Old 16th January 2006, 18:54   #28
NetuserFr
Junior Member
 
Join Date: Jan 2006
Posts: 26
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
NetuserFr is offline   Reply With Quote
Old 16th January 2006, 19:27   #29
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
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.
djSpinnerCee is offline   Reply With Quote
Old 16th January 2006, 20:36   #30
NetuserFr
Junior Member
 
Join Date: Jan 2006
Posts: 26
can you please give a piece of code that refreh the html page ?
NetuserFr is offline   Reply With Quote
Old 16th January 2006, 21:51   #31
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
Meta tags are HTML HEAD elements...

<meta http-equiv="refresh" content="120; ">

content={seconds}
djSpinnerCee is offline   Reply With Quote
Old 16th January 2006, 23:11   #32
NetuserFr
Junior Member
 
Join Date: Jan 2006
Posts: 26
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
NetuserFr is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump