Old 15th October 2003, 20:20   #1
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Q: can i include the php on a webpage, but not display the image.
A: You'll need to diable the image generation

You may find it easier to have two sets of code. One for the image and one for website display.

**************************

Q: what other things are passed to this php code?
A: Since you're using 7.html (from the DNAS readme)
Quote:
To snag a quick list of listener counts, server state, bitrate, and current
title, use the URL http://yourip:port/7.html
For other XML information, you'll need to gather the XML statistics from the admin interface (from the DNAS readme)
Quote:
XML Statistics:

The SHOUTcast DNAS provides an internal mechanism for providing statistics
to external applications via XML, which is useful for providing live
information on your DNAS embedded in other webpages via PHP, Perl, or
other methods which can implement XML. Accessing this data is a bit tricky,
so it's briefly explained here:

XML pages should be called via:

http://yourip:port/admin.cgi?pass=yourpass&mode=viewxml&page=0
http://yourip:port/admin.cgi?pass=yourpass&mode=viewxml&page=1
...

Where:
Page 0 is all DNAS data
Page 1 is only Main data
Page 2 is only Webdata Table
Page 3 is only Listener Table
Page 4 is only Songhistory Table

Your XML parser MUST send a User-Agent: HTTP header containing the
word "Mozilla" in order for the DNAS to recognize it as something
other than a listener.
**********************

Q: And what is fart++ ?????
A: I have gas

FesterHead is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

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